diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 { |
