Handle channel overflow, test channel data

This commit is contained in:
Ian Gulliver
2023-06-12 19:34:22 -07:00
parent 9a268cada3
commit de0e769834
2 changed files with 30 additions and 1 deletions

View File

@@ -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 {