MCPcopy
hub / github.com/dgraph-io/dgraph / GetNode

Method GetNode

conn/raft_server.go:133–137  ·  view source on GitHub ↗

GetNode safely retrieves the node.

()

Source from the content-addressed store, hash-verified

131
132// GetNode safely retrieves the node.
133func (w *RaftServer) GetNode() *Node {
134 w.m.RLock()
135 defer w.m.RUnlock()
136 return w.node
137}
138
139// NewRaftServer returns a pointer to a new RaftServer instance.
140func NewRaftServer(n *Node) *RaftServer {

Callers 4

IsPeerMethod · 0.95
JoinClusterMethod · 0.95
RaftMessageMethod · 0.95
HeartbeatMethod · 0.95

Implementers 1

UnimplementedRaftServerprotos/pb/pb_grpc.pb.go

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected