mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 17:22:21 +08:00
fix(net) pass contexts to dial peer
This commit is contained in:
@ -230,7 +230,7 @@ func (r *dhtQueryRunner) queryPeer(p peer.Peer) {
|
||||
|
||||
// make sure we're connected to the peer.
|
||||
// (Incidentally, this will add it to the peerstore too)
|
||||
err := r.query.dialer.DialPeer(p)
|
||||
err := r.query.dialer.DialPeer(r.ctx, p)
|
||||
if err != nil {
|
||||
log.Debugf("ERROR worker for: %v -- err connecting: %v", p, err)
|
||||
r.Lock()
|
||||
|
Reference in New Issue
Block a user