diff options
| author | Jeff Carr <[email protected]> | 2025-10-26 10:38:29 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-26 10:38:29 -0500 |
| commit | 6bce20f4a8321903804b649ffeeaef28abe8e1de (patch) | |
| tree | 01e3f51dabb283435acc3a24caf88e931ff0282b /main.go | |
| parent | 4286af292a76b26e2799642060847a9cd2a04c0a (diff) | |
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -21,7 +21,7 @@ var resources embed.FS func main() { me = new(zoodStruct) - me.argv = argvpb.Autocomplete(&argv) // adds shell auto complete to go-args + argvpb.Init(&argv, APPNAME, BUILDTIME, VERSION) // adds shell auto-complete if argv.Daemon { // turn off timestamps for STDOUT (systemd adds them) @@ -33,13 +33,13 @@ func main() { if argv.Status != nil { log.Info("todo: show status here") - me.argv.GoodExit("says hi") + argvpb.GoodExit("says hi") } if err := testZoo(); err != nil { log.Info("failed to connect. sleeping for 3 minutes") time.Sleep(3 * time.Minute) - me.argv.BadExit("failed to connect to zookeeper", err) + argvpb.BadExit("failed to connect to zookeeper", err) } me.pollDelay = 3 * time.Second me.failcountmax = 20 // die every minute if zookeeper can't be found |
