MCPcopy 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
37func (i *Impl) IsCandidate() bool {
38 return i.m.Raft.State() == raft.Candidate
39}
40
41func (i *Impl) Leader() string {
42 address, _ := i.m.Raft.LeaderWithID()

Callers

nothing calls this directly

Calls 1

StateMethod · 0.65

Tested by

no test coverage detected