summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-14 13:11:58 -0600
committerJeff Carr <[email protected]>2024-12-14 13:11:58 -0600
commit66dc8d1f615af0ceb7ac285b707f17987a5fef46 (patch)
tree04fdac021e174fd15a0077b384cc62f543671f44 /main.go
parent22d49578c99e7c77ca7f6bd4691e3d88a7cfc7f5 (diff)
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.go b/main.go
index 0329ad5..d349903 100644
--- a/main.go
+++ b/main.go
@@ -33,6 +33,9 @@ func main() {
me = new(stuff)
me.urlbase = "http://zookeeper.grid.wit.com:8080"
+ if argv.URL != "" {
+ me.urlbase = argv.URL
+ }
me.pollDelay = 3 * time.Second
me.failcountmax = 20 // die every minute if zookeeper can't be found