From f2460ea4923bc499f47df4c9d0a1771e0d0bc1c7 Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Tue, 10 Apr 2018 15:07:44 +0200 Subject: [PATCH] swarm/network: add a comment for Kademlia full method --- swarm/network/kademlia.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swarm/network/kademlia.go b/swarm/network/kademlia.go index 04538d17ad..c06e524aea 100644 --- a/swarm/network/kademlia.go +++ b/swarm/network/kademlia.go @@ -674,6 +674,8 @@ func (k *Kademlia) saturation(n int) int { return prev } +// full returns true if all required bins have connected peers. +// It is used in Healthy function. func (k *Kademlia) full(emptyBins []int) (full bool) { prev := 0 e := len(emptyBins)