Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-bradley committed Jun 13, 2023
1 parent 5a24be9 commit 007abef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/opampsupervisor/supervisor/commander/commander.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (c *Commander) Stop(ctx context.Context) error {
go func() {
<-waitCtx.Done()

if waitCtx.Err() != context.DeadlineExceeded {
if !errors.Is(waitCtx.Err(), context.DeadlineExceeded) {
c.logger.Debug("Agent process successfully stopped.", zap.Int("pid", c.cmd.Process.Pid))
return
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/opampsupervisor/supervisor/supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ func (s *Supervisor) healthCheck() {
health.Healthy = false
if !s.agentHasStarted && s.agentStartHealthCheckAttempts < 10 {
health.LastError = "Agent is starting"
s.agentStartHealthCheckAttempts += 1
s.agentStartHealthCheckAttempts++
} else {
health.LastError = err.Error()
s.logger.Error("Agent is not healthy", zap.Error(err))
Expand Down

0 comments on commit 007abef

Please sign in to comment.