mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loop: do not error out on context done in the executor
This commit is contained in:
parent
d198bb8230
commit
a107036261
1 changed files with 3 additions and 3 deletions
|
|
@ -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():
|
||||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue