From 5cd00598928ffa3308c9d344701d65a4242fd25c Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Thu, 11 Apr 2019 16:09:44 +0200 Subject: [PATCH] swarm/network: remove duplicate comment --- swarm/network/kademlia.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/swarm/network/kademlia.go b/swarm/network/kademlia.go index ec0ffd23ac..dd6de44fda 100644 --- a/swarm/network/kademlia.go +++ b/swarm/network/kademlia.go @@ -744,9 +744,6 @@ func (k *Kademlia) Saturation() int { return k.saturation() } -// saturation returns the smallest po value in which the node has less than MinBinSize peers -// if the iterator reaches neighbourhood radius, then the last bin + 1 is returned. -// This function is safe to use in Kademlia methods that use the lock. func (k *Kademlia) saturation() int { prev := -1 radius := neighbourhoodRadiusForPot(k.conns, k.NeighbourhoodSize, k.base)