summaryrefslogtreecommitdiff
path: root/change.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-30 18:10:40 -0500
committerJeff Carr <[email protected]>2024-10-30 18:10:40 -0500
commit18053caca8605895c0e6e2f8555c1ffa642a076a (patch)
treee8ae67fce227621973c5137b6b59cbdd21589def /change.go
parent9608bb680f4679d16985f34d227f1bcf8a0d6c87 (diff)
events are in cluster.E
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'change.go')
-rw-r--r--change.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/change.go b/change.go
index f7e57a3..3a788af 100644
--- a/change.go
+++ b/change.go
@@ -153,7 +153,7 @@ func (c *Cluster) ChangeDropletState(d *Droplet, newState DropletState) error {
now := time.Now()
e.Start = timestamppb.New(now)
- c.Events = append(c.Events, e)
+ c.E.Events = append(c.E.Events, e)
return nil
}
@@ -185,7 +185,7 @@ func (c *Cluster) DropletMoved(d *Droplet, newh *Hypervisor) error {
now := time.Now()
e.Start = timestamppb.New(now)
- c.Events = append(c.Events, e)
+ c.E.Events = append(c.E.Events, e)
// update the droplet record
d.CurrentHypervisor = newh.Hostname