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

Method Leader

store/engine/raft/node.go:367–369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

365}
366
367func (n *Node) Leader() string {
368 return fmt.Sprintf("%d", n.GetRaftLead())
369}
370
371func (n *Node) GetRaftLead() uint64 {
372 return n.raftNode.Status().Lead

Callers

nothing calls this directly

Implementers 1

ClusterNodestore/cluster_node.go

Calls 1

GetRaftLeadMethod · 0.95

Tested by

no test coverage detected