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

Method DeletePeer

conn/node.go:549–556  ·  view source on GitHub ↗

DeletePeer deletes the record of the peer with the given id.

(pid uint64)

Source from the content-addressed store, hash-verified

547
548// DeletePeer deletes the record of the peer with the given id.
549func (n *Node) DeletePeer(pid uint64) {
550 if pid == n.Id {
551 return
552 }
553 n.Lock()
554 defer n.Unlock()
555 delete(n.peers, pid)
556}
557
558var errInternalRetry = errors.New("Retry proposal again")
559

Callers 2

applyConfChangeMethod · 0.80
applyConfChangeMethod · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected