fix typo
Co-Authored-By: Raúl Kripalani <raul@protocol.ai>
This commit is contained in:
parent
8a53469c43
commit
6732f9848b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue