mirror of https://github.com/status-im/consul.git
Rename to raftNotifyCh, fix typo
This commit is contained in:
parent
f2171a6720
commit
f549c06764
|
@ -36,7 +36,7 @@ func (s *Server) monitorLeadership() {
|
|||
// leaderCh, which is only notified best-effort. Doing this ensures
|
||||
// that we get all notifications in order, which is required for
|
||||
// cleanup and to ensure we never run multiple leader loops.
|
||||
raftNotifyCh := s.raftNotifyChanel
|
||||
raftNotifyCh := s.raftNotifyCh
|
||||
|
||||
var wg sync.WaitGroup
|
||||
var stopCh chan struct{}
|
||||
|
|
|
@ -134,9 +134,9 @@ type Server struct {
|
|||
raftTransport *raft.NetworkTransport
|
||||
raftInmem *raft.InmemStore
|
||||
|
||||
// raftNotifyChanel set up by setupRaft() and ensures that we get reliable leader
|
||||
// raftNotifyCh is set up by setupRaft() and ensures that we get reliable leader
|
||||
// transition notifications from the Raft layer.
|
||||
raftNotifyChanel <-chan bool
|
||||
raftNotifyCh <-chan bool
|
||||
|
||||
// reconcileCh is used to pass events from the serf handler
|
||||
// into the leader manager, so that the strong state can be
|
||||
|
@ -601,9 +601,9 @@ func (s *Server) setupRaft() error {
|
|||
}
|
||||
|
||||
// Set up a channel for reliable leader notifications.
|
||||
raftReconcileChannel := make(chan bool, 1)
|
||||
s.config.RaftConfig.NotifyCh = raftReconcileChannel
|
||||
s.raftNotifyChanel = raftReconcileChannel
|
||||
raftNotifyCh := make(chan bool, 1)
|
||||
s.config.RaftConfig.NotifyCh = raftNotifyCh
|
||||
s.raftNotifyCh = raftNotifyCh
|
||||
|
||||
// Setup the Raft store.
|
||||
s.raft, err = raft.NewRaft(s.config.RaftConfig, s.fsm, log, stable, snap, trans)
|
||||
|
|
Loading…
Reference in New Issue