multi: fix most obvious linter errors

This commit is contained in:
Oliver Gugger 2019-10-07 17:29:24 +02:00
parent 1cdb233a00
commit 36838cf7f4
No known key found for this signature in database
GPG key ID: 8E4256593F177720
21 changed files with 41 additions and 50 deletions

View file

@ -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()
}