mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
deleteInBucket removes an entry from entries and replacements.
This commit is contained in:
parent
257bfff316
commit
7472fdc4b9
1 changed files with 1 additions and 0 deletions
|
|
@ -691,6 +691,7 @@ func (tab *Table) bumpOrAdd(b *bucket, n *node) bool {
|
||||||
|
|
||||||
func (tab *Table) deleteInBucket(b *bucket, n *node) {
|
func (tab *Table) deleteInBucket(b *bucket, n *node) {
|
||||||
b.entries = deleteNode(b.entries, n)
|
b.entries = deleteNode(b.entries, n)
|
||||||
|
b.replacements = deleteNode(b.replacements, n)
|
||||||
tab.removeIP(b, n.IP())
|
tab.removeIP(b, n.IP())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue