Skip to content

Commit

Permalink
try find error
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvolkmann committed Sep 26, 2023
1 parent bfa1ca1 commit 09efbe6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/internal/core/phone-home.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (c *Core) ConstantlyPhoneHome(ctx context.Context, interval time.Duration)
})
c.phoneHome(ctx, msgs)
case <-ctx.Done():
break
return
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/internal/core/reconfigure-switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (c *Core) ConstantlyReconfigureSwitch(ctx context.Context, interval time.Du
c.metrics.CountError("reconfiguration-notification")
}
case <-ctx.Done():
break
return
}
}
}
Expand Down
1 change: 1 addition & 0 deletions cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ func Run() {
}()

<-ctx.Done()
log.Debug("signal")

wg.Add(1)
go func() {
Expand Down

0 comments on commit 09efbe6

Please sign in to comment.