Skip to content

Commit 6b732ba

Browse files
committed
executor: fix linter error
1 parent 1611135 commit 6b732ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

executor.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,17 @@ func (s *executor) run(mainCtx context.Context,
140140
go func() {
141141
defer s.wg.Done()
142142

143-
newSwap.execute(mainCtx, &executeConfig{
143+
err := newSwap.execute(mainCtx, &executeConfig{
144144
statusChan: statusChan,
145145
sweeper: s.sweeper,
146146
blockEpochChan: queue.ChanOut(),
147147
timerFactory: s.executorConfig.createExpiryTimer,
148148
loopOutMaxParts: s.executorConfig.loopOutMaxParts,
149149
cancelSwap: s.executorConfig.cancelSwap,
150150
}, height)
151+
if err != nil && err != context.Canceled {
152+
log.Errorf("Execute error: %v", err)
153+
}
151154

152155
select {
153156
case swapDoneChan <- swapID:

0 commit comments

Comments
 (0)