diff options
| author | Jeff Carr <[email protected]> | 2024-10-22 17:27:24 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-22 17:27:24 -0500 |
| commit | 673bcc6cc9e4504ff707d6cef7575eb1ce152e7c (patch) | |
| tree | c4f56d6a146a94c3df163f0a8208409e66a83f56 /event.go | |
| parent | 3b64d342d290d1bea1a8f6edee11fa35997a79c5 (diff) | |
start migration to protobufs
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
@@ -14,14 +14,14 @@ func (d *DropletT) Start() { } func (h *HyperT) RestartDaemon() { - url := "http://" + h.Hostname + ":2520/kill" + url := "http://" + h.pb.Hostname + ":2520/kill" s := shell.Wget(url) log.Info("EVENT RestartDaemon", url, s) h.lastpoll = time.Now() h.killcount += 1 dur := time.Since(h.lastpoll) // Calculate the elapsed time - log.Info("KILLED DAEMON", h.Hostname, shell.FormatDuration(dur), "curl", url) + log.Info("KILLED DAEMON", h.pb.Hostname, shell.FormatDuration(dur), "curl", url) me.killcount += 1 // mark the cluster as unstable so droplet starts can be throttled @@ -63,7 +63,7 @@ func (h *HyperT) Start(d *DropletT) (bool, string) { return false, result } - url := "http://" + h.Hostname + ":2520/start?start=" + d.Hostname + url := "http://" + h.pb.Hostname + ":2520/start?start=" + d.pb.Hostname s := shell.Wget(url) result = "EVENT start droplet url: " + url + "\n" result += "EVENT start droplet response: " + s.String() @@ -100,8 +100,8 @@ func Start(name string) (bool, string) { // make the list of hypervisors that are active and can start new droplets var pool []*HyperT for _, h := range me.hypers { - result += fmt.Sprintln("could start droplet on", name, "on", h.Hostname, h.Active) - if d.hyperPreferred == h.Hostname { + result += fmt.Sprintln("could start droplet on", name, "on", h.pb.Hostname, h.Active) + if d.hyperPreferred == h.pb.Hostname { // the config file says this droplet should run on this hypervisor a, b := h.Start(d) return a, result + b |
