return to exit select loop rather than break (#4040)

This commit is contained in:
Preston Van Loon
2019-11-19 05:22:45 -08:00
committed by Nishant Das
parent 65d920e13a
commit 24a5000e47
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ func (s *Service) processAttestation() {
}
case <-s.ctx.Done():
log.Debug("Context closed, exiting routine")
break
return
}
}
}

View File

@@ -28,7 +28,7 @@ func (r *RegularSync) processPendingBlocksQueue() {
r.processPendingBlocks(ctx)
case <-r.ctx.Done():
log.Debug("Context closed, exiting routine")
break
return
}
}
}