Skip to content

Commit

Permalink
Shutdown the validator loops on scheduler shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed May 15, 2024
1 parent 600a856 commit 3e2cb84
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ loop:
for {
select {
// on close, exit the loop
case <-s.shutdownSignal:
break loop
// on close, exit the loop
case <-validatorQueue.shutdownSignal:
break loop
// when a block is pushed by this validator queue.
Expand Down

0 comments on commit 3e2cb84

Please sign in to comment.