Skip to content

Commit

Permalink
fix comment for fetchers copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
manu844 committed Dec 17, 2022
1 parent 39d4a10 commit 928f2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 928f2cd

Please sign in to comment.