summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-18 20:22:12 -0600
committerJeff Carr <[email protected]>2024-11-18 20:22:12 -0600
commitafc7fedbe14d22b7090efc970a21686a050d0242 (patch)
tree5d08116134f53cd5cf628c8dd0961d3efda03f2c /main.go
parentb71fec22c8cc6c5b3be47bd782a7c807be75216c (diff)
someday this will workv0.0.7
Diffstat (limited to 'main.go')
-rw-r--r--main.go18
1 files changed, 4 insertions, 14 deletions
diff --git a/main.go b/main.go
index d60f1e0..3b5bbba 100644
--- a/main.go
+++ b/main.go
@@ -1,16 +1,4 @@
-// Copyright 2016 The go-qemu Authors.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
+// Copyright 2024 WIT.COM Inc.
package main
@@ -45,9 +33,11 @@ func main() {
}
me = new(stuff)
- me.zookeeper = "zookeeper.wit.com"
+ me.urlbase = "http://zookeeper.grid.wit.com:8080"
+
me.hostname, _ = os.Hostname()
me.pollDelay = 3 * time.Second
+ me.failcountmax = 20 // die every minute if zookeeper can't be found
// what OS?
me.distro = initDistro()