mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43: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
|
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) {
|
func (k *Kademlia) full(emptyBins []int) (full bool) {
|
||||||
prev := 0
|
prev := 0
|
||||||
e := len(emptyBins)
|
e := len(emptyBins)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue