Skip to content

Commit

Permalink
fix: break errors
Browse files Browse the repository at this point in the history
  • Loading branch information
BridgeSenseDev committed Feb 9, 2025
1 parent d727036 commit 8462162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (d *DmgService) RemoveInstance(token string) {
for _, in := range d.instances {
if in.AccountCfg.Token != token {
instancesToKeep = append(instancesToKeep, in)
} else if in.State == "healthy" {
} else if in.State == "healthy" || in.State == "running" || in.State == "sleeping" {
wg.Add(1)
go func(in *instance.Instance) {
defer wg.Done()
Expand Down Expand Up @@ -212,7 +212,7 @@ func (d *DmgService) GetInstances() []*InstanceView {
AccountCfg: i.AccountCfg,
LastRan: i.LastRan,
State: i.State,
BreakUpdateTime: i.BreakUpdateTime.String(),
BreakUpdateTime: i.BreakUpdateTime.Format(time.RFC3339),
}
instanceViews = append(instanceViews, instanceView)
}
Expand Down

0 comments on commit 8462162

Please sign in to comment.