if $NO_PING then skip ping

main
Bel LaPointe 2025-10-03 21:06:18 -06:00
parent 081953776b
commit 7a03d9b376
1 changed files with 4 additions and 2 deletions

View File

@ -27,8 +27,10 @@ func main() {
} }
defer client.Close() defer client.Close()
if err := client.Ping(ctx).Err(); err != nil { if os.Getenv("NO_PING") == "" {
panic(err) if err := client.Ping(ctx).Err(); err != nil {
panic(err)
}
} }
foo := []any{} foo := []any{}