if $NO_PING then skip ping
parent
081953776b
commit
7a03d9b376
2
main.go
2
main.go
|
|
@ -27,9 +27,11 @@ func main() {
|
||||||
}
|
}
|
||||||
defer client.Close()
|
defer client.Close()
|
||||||
|
|
||||||
|
if os.Getenv("NO_PING") == "" {
|
||||||
if err := client.Ping(ctx).Err(); err != nil {
|
if err := client.Ping(ctx).Err(); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
foo := []any{}
|
foo := []any{}
|
||||||
for _, arg := range os.Args[2:] {
|
for _, arg := range os.Args[2:] {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue