Skip to content

Commit

Permalink
Merge pull request #567 from SchopenhauerZhang/fix_unknow_status_when…
Browse files Browse the repository at this point in the history
…_multi_sign_arrving

Make it done when Push to the notify channel if given
  • Loading branch information
DanStough committed Oct 10, 2023
2 parents 49bd61b + 6afcd70 commit d09d941
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions raft.go
Expand Up @@ -434,6 +434,11 @@ func (r *Raft) runLeader() {
select {
case notify <- true:
case <-r.shutdownCh:
// make sure push to the notify channel ( if given )
select {
case notify <- true:
default:
}
}
}

Expand Down

0 comments on commit d09d941

Please sign in to comment.