1
0
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:
Brian Tiger Chow
2014-11-05 04:26:30 -08:00
parent c60d011764
commit 23096de3c4
8 changed files with 16 additions and 16 deletions

View File

@ -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
}