Co-Authored-By: Raúl Kripalani <raul@protocol.ai>
This commit is contained in:
vyzo 2020-04-10 20:23:45 +03:00
parent 8a53469c43
commit 6732f9848b
1 changed files with 1 additions and 1 deletions

View File

@ -951,7 +951,7 @@ func (gs *GossipSubRouter) heartbeat() {
medianIndex := len(peers) / 2
medianScore := scores[plst[medianIndex]]
// if the media score is below the threshold, select a better peer (if any) and GRAFT
// if the median score is below the threshold, select a better peer (if any) and GRAFT
if medianScore < gs.opportunisticGraftThreshold {
backoff := gs.backoff[topic]
plst = gs.getPeers(topic, 1, func(p peer.ID) bool {