1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 19:32:24 +08:00

make the providers manager respect contexts

This commit is contained in:
Jeromy
2015-02-26 16:44:36 -08:00
parent cb6d161b05
commit 3b2bd9bf6a
4 changed files with 9 additions and 5 deletions

View File

@ -223,7 +223,7 @@ func (dht *IpfsDHT) handleAddProvider(ctx context.Context, p peer.ID, pmes *pb.M
// add the received addresses to our peerstore.
dht.peerstore.AddAddrs(pi.ID, pi.Addrs, peer.ProviderAddrTTL)
}
dht.providers.AddProvider(key, p)
dht.providers.AddProvider(ctx, key, p)
}
return pmes, nil // send back same msg as confirmation.