mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
swarm/network: add a comment for Kademlia full method
This commit is contained in:
parent
e38c5353b3
commit
f2460ea492
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue