summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-22 17:45:50 -0600
committerJeff Carr <[email protected]>2025-02-22 17:45:50 -0600
commit32e27530075a09f5c3b82ca6cbb83a01e34cb24c (patch)
treebf1ad3f04ef77b2425385a4261e36d95909b6988 /main.go
parent9f9a52312e6e9538e7ec4c0eefbe46aace352fd3 (diff)
switch virtbuf to virtpbv0.2.36
Diffstat (limited to 'main.go')
-rw-r--r--main.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.go b/main.go
index ce6d446..fe35788 100644
--- a/main.go
+++ b/main.go
@@ -11,7 +11,7 @@ import (
"go.wit.com/dev/alexflint/arg"
"go.wit.com/gui"
- pb "go.wit.com/lib/protobuf/virtbuf"
+ "go.wit.com/lib/protobuf/virtpb"
"go.wit.com/lib/virtigolib"
"go.wit.com/log"
)
@@ -40,7 +40,7 @@ func main() {
// set defaults
me.unstable = time.Now() // initialize the grid as unstable
me.changed = false
- me.hmap = make(map[*pb.Hypervisor]*HyperT)
+ me.hmap = make(map[*virtpb.Hypervisor]*HyperT)
// how long a droplet can be missing until it's declared dead
me.unstableTimeout = 17 * time.Second
@@ -52,7 +52,7 @@ func main() {
// how long the cluster must be stable before new droplets can be started
me.clusterStableDuration = 37 * time.Second
- me.cluster = pb.InitCluster()
+ me.cluster = virtpb.InitCluster()
if err := me.cluster.ConfigLoad(); err != nil {
log.Info("config load error", err)
log.Info("")
@@ -71,9 +71,9 @@ func main() {
}
fmt.Println("Droplet UUID:", d.Uuid)
if d.Current == nil {
- d.Current = new(pb.Current)
+ d.Current = new(virtpb.Current)
}
- d.SetState(pb.DropletState_OFF)
+ d.SetState(virtpb.DropletState_OFF)
log.Info("droplet", d.Hostname)
}
hmm := "pihole.wit.com"
@@ -84,7 +84,7 @@ func main() {
log.Info("found droplet", d.Hostname, d)
}
- var newEvents []*pb.Event
+ var newEvents []*virtpb.Event
// sanity check the cluster & droplets
if _, _, err := ValidateDroplets(); err != nil {