diff --git a/peers.go b/peers.go index 79bcd6e5..d61174b1 100644 --- a/peers.go +++ b/peers.go @@ -399,7 +399,7 @@ func (pp *PeerPicker) listPeers() map[string]RemoteFetcher { pp.mu.RLock() defer pp.mu.RUnlock() - // deep copy of fetchers map with size equal to length of pp.fetchers. + // copy of pp.fetchers map. fetchers := make(map[string]RemoteFetcher, len(pp.fetchers)) for p, f := range pp.fetchers { fetchers[p] = f