Add process synchronization in leader role

This commit is contained in:
Ingo Oppermann
2023-05-09 20:48:30 +02:00
parent ab86b8fd5d
commit ae04dc50c7
7 changed files with 924 additions and 65 deletions

View File

@@ -116,6 +116,7 @@ type cluster struct {
store Store
reassertLeaderCh chan chan error
cancelLeaderShip context.CancelFunc
leaveCh chan struct{}