if $NO_PING then skip ping

This commit is contained in:
Bel LaPointe
2025-10-03 21:06:18 -06:00
parent 081953776b
commit 7a03d9b376

View File

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