mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
linter: fix lint issues after linter v2 update
This commit is contained in:
parent
bd6271e633
commit
e98f733ef8
29 changed files with 65 additions and 59 deletions
10
executor.go
10
executor.go
|
|
@ -42,17 +42,14 @@ type executorConfig struct {
|
|||
}
|
||||
|
||||
// executor is responsible for executing swaps.
|
||||
//
|
||||
// TODO(roasbeef): rename to SubSwapper.
|
||||
type executor struct {
|
||||
sync.Mutex
|
||||
executorConfig
|
||||
|
||||
wg sync.WaitGroup
|
||||
newSwaps chan genericSwap
|
||||
currentHeight uint32
|
||||
ready chan struct{}
|
||||
|
||||
sync.Mutex
|
||||
|
||||
executorConfig
|
||||
}
|
||||
|
||||
// newExecutor returns a new swap executor instance.
|
||||
|
|
@ -80,7 +77,6 @@ func (s *executor) run(mainCtx context.Context,
|
|||
for {
|
||||
blockEpochChan, blockErrorChan, err =
|
||||
s.lnd.ChainNotifier.RegisterBlockEpochNtfn(mainCtx)
|
||||
|
||||
if err == nil {
|
||||
break
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue