mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
return to exit select loop rather than break (#4040)
This commit is contained in:
committed by
Nishant Das
parent
65d920e13a
commit
24a5000e47
@@ -71,7 +71,7 @@ func (s *Service) processAttestation() {
|
||||
}
|
||||
case <-s.ctx.Done():
|
||||
log.Debug("Context closed, exiting routine")
|
||||
break
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ func (r *RegularSync) processPendingBlocksQueue() {
|
||||
r.processPendingBlocks(ctx)
|
||||
case <-r.ctx.Done():
|
||||
log.Debug("Context closed, exiting routine")
|
||||
break
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user