Closed jihuayu closed 7 months ago
In this PR, I added sync.Group to the etcd storage to wait for the goroutines (observeLeaderEvent and electLoop) for the election to exit.
sync.Group
observeLeaderEvent
electLoop
In addition, I fixed the bug in test case.
In this PR, I added
sync.Group
to the etcd storage to wait for the goroutines (observeLeaderEvent
andelectLoop
) for the election to exit.In addition, I fixed the bug in test case.