diff options
| author | Jeff Carr <[email protected]> | 2025-02-22 17:45:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-22 17:45:50 -0600 |
| commit | 32e27530075a09f5c3b82ca6cbb83a01e34cb24c (patch) | |
| tree | bf1ad3f04ef77b2425385a4261e36d95909b6988 /start.go | |
| parent | 9f9a52312e6e9538e7ec4c0eefbe46aace352fd3 (diff) | |
switch virtbuf to virtpbv0.2.36
Diffstat (limited to 'start.go')
| -rw-r--r-- | start.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -10,7 +10,7 @@ import ( "math/rand" "time" - pb "go.wit.com/lib/protobuf/virtbuf" + "go.wit.com/lib/protobuf/virtpb" "go.wit.com/log" ) @@ -18,9 +18,9 @@ func isClusterStable() (string, error) { // how long has the cluster been stable? // wait until it is stable. use this to throttle droplet starts dur := time.Since(me.unstable) - good := fmt.Sprintln("trying to start droplet here. grid stable for: ", pb.FormatDuration(dur)) + good := fmt.Sprintln("trying to start droplet here. grid stable for: ", virtpb.FormatDuration(dur)) if dur < me.unstableTimeout { - tmp := pb.FormatDuration(me.unstableTimeout) + tmp := virtpb.FormatDuration(me.unstableTimeout) err := "grid is still too unstable (unstable timeout = " + tmp + ")\n" return good + err, errors.New(err) } @@ -52,7 +52,7 @@ func Start(name string) (string, error) { } // is the droplet already on? - if d.Current.State == pb.DropletState_ON { + if d.Current.State == virtpb.DropletState_ON { result = "EVENT start droplet " + d.Hostname + " is already ON" return result, errors.New(result) } |
