mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
multi: fix most obvious linter errors
This commit is contained in:
parent
1cdb233a00
commit
36838cf7f4
21 changed files with 41 additions and 50 deletions
|
|
@ -69,7 +69,7 @@ func (s *executor) run(mainCtx context.Context,
|
|||
|
||||
select {
|
||||
case h := <-blockEpochChan:
|
||||
setHeight(int32(h))
|
||||
setHeight(h)
|
||||
case err := <-blockErrorChan:
|
||||
return err
|
||||
case <-mainCtx.Done():
|
||||
|
|
@ -134,10 +134,10 @@ func (s *executor) run(mainCtx context.Context,
|
|||
delete(blockEpochQueues, doneID)
|
||||
|
||||
case h := <-blockEpochChan:
|
||||
setHeight(int32(h))
|
||||
setHeight(h)
|
||||
for _, queue := range blockEpochQueues {
|
||||
select {
|
||||
case queue.ChanIn() <- int32(h):
|
||||
case queue.ChanIn() <- h:
|
||||
case <-mainCtx.Done():
|
||||
return mainCtx.Err()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue