fix(net) pass contexts to dial peer

This commit is contained in:
Brian Tiger Chow
2014-11-05 04:26:30 -08:00
parent a45511bb19
commit 077a34c247
4 changed files with 10 additions and 11 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
}