Browse Source

executor: fix linter error

pull/378/head
carla 4 months ago
parent
commit
6b732bacee
No known key found for this signature in database GPG Key ID: 4CA7FE54A6213C91
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      executor.go

+ 4
- 1
executor.go View File

@ -140,7 +140,7 @@ func (s *executor) run(mainCtx context.Context,
go func() {
defer s.wg.Done()
newSwap.execute(mainCtx, &executeConfig{
err := newSwap.execute(mainCtx, &executeConfig{
statusChan: statusChan,
sweeper: s.sweeper,
blockEpochChan: queue.ChanOut(),
@ -148,6 +148,9 @@ func (s *executor) run(mainCtx context.Context,
loopOutMaxParts: s.executorConfig.loopOutMaxParts,
cancelSwap: s.executorConfig.cancelSwap,
}, height)
if err != nil && err != context.Canceled {
log.Errorf("Execute error: %v", err)
}
select {
case swapDoneChan <- swapID:

Loading…
Cancel
Save