mirror of
https://github.com/fluencelabs/go-libp2p-kad-dht
synced 2025-06-24 18:21:36 +00:00
fix(net) pass contexts to dial peer
This commit is contained in:
@ -4,7 +4,6 @@ import (
|
||||
"testing"
|
||||
|
||||
crand "crypto/rand"
|
||||
|
||||
context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
|
||||
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/goprotobuf/proto"
|
||||
|
||||
@ -82,7 +81,7 @@ type fauxNet struct {
|
||||
}
|
||||
|
||||
// DialPeer attempts to establish a connection to a given peer
|
||||
func (f *fauxNet) DialPeer(peer.Peer) error {
|
||||
func (f *fauxNet) DialPeer(context.Context, peer.Peer) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user