code: func newRoleManager(store *store.MemoryStore, raftNode *raft.Node) *roleManager {
  	ctx, cancel := context.WithCancel(context.Background())
  	return &roleManager{
  		ctx:                   ctx,
  		cancel:                cancel,
  		store:                 store,
  		raft:                  raftNode,
  		doneChan:              make(chan struct{}),
  		pendingReconciliation: make(map[string]*api.Node),
  		pendingRemoval:        make(map[string]struct{}),
  	}
  }
docs: // newRoleManager creates a new roleManager.