Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ByteStorage/FlyDB
/ IsCandidate
Method
IsCandidate
lib/raft/raft_impl.go:37–39 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
35
}
36
37
func
(i *Impl) IsCandidate() bool {
38
return
i.m.Raft.State() == raft.Candidate
39
}
40
41
func
(i *Impl) Leader() string {
42
address, _ := i.m.Raft.LeaderWithID()
Callers
nothing calls this directly
Calls
1
State
Method · 0.65
Tested by
no test coverage detected