Skip to content

Commit ed0d77c

Browse files
committed
loop: do not error out on context done in the executor
1 parent d198bb8 commit ed0d77c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

executor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (s *executor) run(mainCtx context.Context,
132132
defer s.wg.Done()
133133

134134
err := s.batcher.Run(mainCtx)
135-
if err != nil {
135+
if err != nil && err != context.Canceled {
136136
select {
137137
case batcherErrChan <- err:
138138
case <-mainCtx.Done():

0 commit comments

Comments
 (0)