Skip to content

Commit

Permalink
fix review part6
Browse files Browse the repository at this point in the history
  • Loading branch information
Пешков Дмитрий committed Sep 20, 2024
1 parent 29271dd commit 55619cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/workers/order.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ func (w *OrderWorker) Run() {
for i := 1; i <= w.workerCount; i++ {
errorCh := w.worker()
select {
case <-w.ctx.Done():
return
case err := <-errorCh:
if err != nil && retryCount < w.retryWorkerCount {
w.worker()
Expand Down

0 comments on commit 55619cc

Please sign in to comment.