From 5e8e20865a153d605e34e7b66b29ed81d25ec463 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Thu, 31 Jan 2019 11:21:26 +0100 Subject: [PATCH] p2p/discover: fix comments Co-Authored-By: fjl --- p2p/discover/table.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/discover/table.go b/p2p/discover/table.go index 8d5a858474..ef0c08afce 100644 --- a/p2p/discover/table.go +++ b/p2p/discover/table.go @@ -586,7 +586,7 @@ func (tab *Table) addSeenNode(n *node) { } } -// addLiveNode adds a node whose existence has been verified recently to the front of a +// addVerifiedNode adds a node whose existence has been verified recently to the front of a // bucket. If the node is already in the bucket, it is moved to the front. If the bucket // has no space, the node is added to the replacements list. // @@ -696,7 +696,7 @@ func (tab *Table) replace(b *bucket, last *node) *node { return r } -// bump moves the given node to the front of the bucket entry list +// bumpInBucket moves the given node to the front of the bucket entry list // if it is contained in that list. func (tab *Table) bumpInBucket(b *bucket, n *node) bool { for i := range b.entries {