Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
367
func
(n *Node) Leader() string {
368
return
fmt.Sprintf(
"%d"
, n.GetRaftLead())
369
}
370
371
func
(n *Node) GetRaftLead() uint64 {
372
return
n.raftNode.Status().Lead
Callers
nothing calls this directly
Implementers
1
ClusterNode
store/cluster_node.go
Calls
1
GetRaftLead
Method · 0.95
Tested by
no test coverage detected