From 6732f9848b5b5490fe23d9569d3f9c5f8b066d78 Mon Sep 17 00:00:00 2001 From: vyzo Date: Fri, 10 Apr 2020 20:23:45 +0300 Subject: [PATCH] fix typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Raúl Kripalani --- gossipsub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gossipsub.go b/gossipsub.go index dad8a3f..82f8b71 100644 --- a/gossipsub.go +++ b/gossipsub.go @@ -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 {