Skip to content

Commit

Permalink
Handle 'done' channel in keep-alive logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Feb 13, 2025
1 parent 147cdb2 commit 2a2d0d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions service/tier2.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,8 @@ excludable:
select {
case <-ctx.Done():
return
case <-done:
return
case <-time.After(keepAliveDelay):
s.logger.Info("keep alive timer expired, calling keep alive", zap.String("worker_id", workerID), zap.Bool("keep", false))
_, err := s.remoteWorkerClient.KeepAlive(ctx,
Expand Down

0 comments on commit 2a2d0d0

Please sign in to comment.