mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/network: remove duplicate comment
This commit is contained in:
parent
2b2314e6af
commit
5cd0059892
1 changed files with 0 additions and 3 deletions
|
|
@ -744,9 +744,6 @@ func (k *Kademlia) Saturation() int {
|
||||||
return k.saturation()
|
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 {
|
func (k *Kademlia) saturation() int {
|
||||||
prev := -1
|
prev := -1
|
||||||
radius := neighbourhoodRadiusForPot(k.conns, k.NeighbourhoodSize, k.base)
|
radius := neighbourhoodRadiusForPot(k.conns, k.NeighbourhoodSize, k.base)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue