summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-11 03:44:16 -0500
committerJeff Carr <[email protected]>2025-09-11 03:44:16 -0500
commitaeae4ddf46cf577283a4b65fa4ffacd8f9d6cc8e (patch)
tree45e27191fbb52105b0da7cb14012db064a8f8a03
parent1d7b1efa27b0db9419087e777b6c692bc2ced9fb (diff)
new init()v0.0.92v0.0.91
-rw-r--r--main.go2
-rw-r--r--structs.go2
2 files changed, 0 insertions, 4 deletions
diff --git a/main.go b/main.go
index 2d9c9cd..3f685dd 100644
--- a/main.go
+++ b/main.go
@@ -9,7 +9,6 @@ import (
"time"
"go.wit.com/dev/alexflint/arg"
- "go.wit.com/lib/protobuf/forgepb"
"go.wit.com/lib/protobuf/zoopb"
"go.wit.com/log"
)
@@ -44,7 +43,6 @@ func main() {
me.pollDelay = 3 * time.Second
me.failcountmax = 20 // die every minute if zookeeper can't be found
- me.forge = forgepb.InitPB()
me.machine = zoopb.InitMachine()
zood() // talks to zookeeper
diff --git a/structs.go b/structs.go
index bb07847..802a5a7 100644
--- a/structs.go
+++ b/structs.go
@@ -6,7 +6,6 @@ package main
import (
"time"
- "go.wit.com/lib/protobuf/forgepb"
"go.wit.com/lib/protobuf/zoopb"
)
@@ -19,7 +18,6 @@ type stuff struct {
pollDelay time.Duration // how often to report our status
dog *time.Ticker // the watchdog timer
machine *zoopb.Machine // populated from protobuf based zoopb
- forge *forgepb.Forge // handle to forge
failcount int // how many times we've failed to contact the zookeeper
failcountmax int // after this, exit and let systemd restart the daemon
}