DeletePeer deletes the record of the peer with the given id.
(pid uint64)
| 547 | |
| 548 | // DeletePeer deletes the record of the peer with the given id. |
| 549 | func (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 | |
| 558 | var errInternalRetry = errors.New("Retry proposal again") |
| 559 |
no test coverage detected