(ctx context.Context, nodeID uint64)
| 353 | } |
| 354 | |
| 355 | func (n *Node) RemovePeer(ctx context.Context, nodeID uint64) error { |
| 356 | cc := raftpb.ConfChange{ |
| 357 | Type: raftpb.ConfChangeRemoveNode, |
| 358 | NodeID: nodeID, |
| 359 | } |
| 360 | return n.raftNode.ProposeConfChange(ctx, cc) |
| 361 | } |
| 362 | |
| 363 | func (n *Node) ID() string { |
| 364 | return fmt.Sprintf("%d", n.config.ID) |
no outgoing calls