Handle channel overflow, test channel data
This commit is contained in:
@@ -215,7 +215,11 @@ func (c *Candidate) elect(v *vote) {
|
||||
)
|
||||
|
||||
c.state = state
|
||||
c.c <- state
|
||||
|
||||
select {
|
||||
case c.c <- state:
|
||||
default:
|
||||
}
|
||||
}()
|
||||
|
||||
if c.forceState != StateUndefined {
|
||||
|
||||
Reference in New Issue
Block a user