mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 05:52:20 +08:00
style: readability
@jbenet License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:
@ -149,7 +149,8 @@ func (dht *IpfsDHT) FindProvidersAsync(ctx context.Context, key u.Key, count int
|
||||
}
|
||||
|
||||
var wg sync.WaitGroup
|
||||
for _, pp := range dht.routingTables[0].NearestPeers(kb.ConvertKey(key), AlphaValue) {
|
||||
peers := dht.routingTables[0].NearestPeers(kb.ConvertKey(key), AlphaValue)
|
||||
for _, pp := range peers {
|
||||
wg.Add(1)
|
||||
go func(p peer.Peer) {
|
||||
defer wg.Done()
|
||||
|
Reference in New Issue
Block a user