MCPcopy Create free account
hub / github.com/apache/kvrocks-controller / AddNode

Method AddNode

store/engine/raft/node_test.go:83–88  ·  view source on GitHub ↗
(ctx context.Context, nodeID uint64, peer string)

Source from the content-addressed store, hash-verified

81}
82
83func (c *TestCluster) AddNode(ctx context.Context, nodeID uint64, peer string) error {
84 if len(c.nodes) == 0 {
85 return nil
86 }
87 return c.nodes[0].AddPeer(ctx, nodeID, peer)
88}
89
90func (c *TestCluster) RemoveNode(ctx context.Context, nodeID uint64) error {
91 var node *Node

Callers 1

Calls 1

AddPeerMethod · 0.80

Tested by

no test coverage detected