From 6b732bacee5590f3b114427320166f90ff2517fd Mon Sep 17 00:00:00 2001 From: carla Date: Mon, 24 May 2021 08:40:15 +0200 Subject: [PATCH] executor: fix linter error --- executor.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/executor.go b/executor.go index 25f9f9d..f759e2c 100644 --- a/executor.go +++ b/executor.go @@ -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: