Skip to content

Commit

Permalink
Fix coordinator goroutine tight loop on cancelled context
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksmaus committed Apr 13, 2021
1 parent c45b129 commit 1cd0dfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/pkg/coordinator/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,8 @@ func runCoordinator(ctx context.Context, cord Coordinator, l zerolog.Logger, d t
if sleep.WithContext(ctx, d) == context.Canceled {
break
}
} else {
break
}
}
}
Expand Down

0 comments on commit 1cd0dfa

Please sign in to comment.