diff options
| author | Jeff Carr <[email protected]> | 2024-10-31 06:41:30 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-31 06:41:30 -0500 |
| commit | e6ea90f8defd8f26702ed808bcf801f53ce3a327 (patch) | |
| tree | 290626b309372941c6aa92c9536d048ffa6ec326 /event.go | |
| parent | 22111183a5a6f9c87062d503c8a71a6a6955bed5 (diff) | |
compiles after lots of protobuf changes
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'event.go')
| -rw-r--r-- | event.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -38,12 +38,12 @@ func clusterReady() (bool, string) { } func dropletReady(d *pb.Droplet) (bool, string) { - if d.CurrentState == pb.DropletState_ON { + if d.Current.State == pb.DropletState_ON { return false, "EVENT start droplet is already ON" } - if d.Starts > 2 { + if d.Current.StartAttempts > 2 { // reason := "EVENT start droplet has already been started " + d.starts + " times" - return false, fmt.Sprintln("EVENT start droplet has already been started ", d.Starts, " times") + return false, fmt.Sprintln("EVENT start droplet has already been started ", d.Current.StartAttempts, " times") } return true, "" } @@ -76,7 +76,7 @@ func (h *HyperT) start(d *pb.Droplet) (bool, string) { result += "EVENT start droplet response: " + string(req) // increment the counter for a start attempt working - d.Starts += 1 + d.Current.StartAttempts += 1 // mark the cluster as unstable so droplet starts can be throttled me.unstable = time.Now() @@ -84,7 +84,7 @@ func (h *HyperT) start(d *pb.Droplet) (bool, string) { return true, result } -func findDroplet(name string) *pb.Droplet { +func findDropletByName(name string) *pb.Droplet { for _, d := range me.cluster.Droplets { if d.Hostname == name { return d |
