consensus: skip channel close during shutdown (#8155)

I see this panic in tests occasionally, and I don't think there's any
need to close this channel:

- it's only sent to in one place which has a select case with a
  default clause, so there's no chance of deadlocks.

- the only place we recieve from it thas a timeout.
This commit is contained in:
Sam Kleinman
2022-03-18 14:35:42 -04:00
committed by GitHub
parent 0bded371c5
commit 9a833a8495

View File

@@ -511,8 +511,6 @@ func (cs *State) OnStop() {
}
}
close(cs.onStopCh)
if cs.timeoutTicker.IsRunning() {
cs.timeoutTicker.Stop()
}