Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (s *executor) run(mainCtx context.Context,
defer s.wg.Done()

err := s.batcher.Run(mainCtx)
if err != nil {
if err != nil && !errors.Is(err, context.Canceled) {
select {
case batcherErrChan <- err:
case <-mainCtx.Done():
Expand Down Expand Up @@ -229,10 +229,10 @@ func (s *executor) run(mainCtx context.Context,
}

case err := <-blockErrorChan:
return fmt.Errorf("block error: %v", err)
return fmt.Errorf("block error: %w", err)

case err := <-batcherErrChan:
return fmt.Errorf("batcher error: %v", err)
return fmt.Errorf("batcher error: %w", err)

case <-mainCtx.Done():
return mainCtx.Err()
Expand Down
Loading