Skip to content

Commit d2ca7cf

Browse files
authored
p2p/discover: remove unused parameter in revalidationList.get (#31155)
1 parent 9064038 commit d2ca7cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

p2p/discover/table_reval.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (tr *tableRevalidation) nodeEndpointChanged(tab *Table, n *tableNode) {
7979
func (tr *tableRevalidation) run(tab *Table, now mclock.AbsTime) (nextTime mclock.AbsTime) {
8080
reval := func(list *revalidationList) {
8181
if list.nextTime <= now {
82-
if n := list.get(now, &tab.rand, tr.activeReq); n != nil {
82+
if n := list.get(&tab.rand, tr.activeReq); n != nil {
8383
tr.startRequest(tab, n)
8484
}
8585
// Update nextTime regardless if any requests were started because
@@ -203,7 +203,7 @@ type revalidationList struct {
203203
}
204204

205205
// get returns a random node from the queue. Nodes in the 'exclude' map are not returned.
206-
func (list *revalidationList) get(now mclock.AbsTime, rand randomSource, exclude map[enode.ID]struct{}) *tableNode {
206+
func (list *revalidationList) get(rand randomSource, exclude map[enode.ID]struct{}) *tableNode {
207207
if len(list.nodes) == 0 {
208208
return nil
209209
}

0 commit comments

Comments
 (0)