diff --git a/dht.go b/dht.go index edd18ff..1294d9c 100644 --- a/dht.go +++ b/dht.go @@ -21,10 +21,10 @@ import ( "github.com/jbenet/go-ipfs/thirdparty/eventlog" u "github.com/jbenet/go-ipfs/util" - 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" ctxgroup "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-ctxgroup" ds "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore" + context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context" ) var log = eventlog.Logger("dht") @@ -78,7 +78,7 @@ func NewDHT(ctx context.Context, h host.Host, dstore ds.ThreadSafeDatastore) *Ip h.SetStreamHandler(ProtocolDHT, dht.handleNewStream) dht.providers = NewProviderManager(dht.Context(), dht.self) - dht.AddChildGroup(dht.providers) + dht.AddChild(dht.providers) dht.routingTable = kb.NewRoutingTable(20, kb.ConvertPeerID(dht.self), time.Minute, dht.peerstore) dht.birth = time.Now() diff --git a/dht_bootstrap.go b/dht_bootstrap.go index 7eedb48..79dcb4d 100644 --- a/dht_bootstrap.go +++ b/dht_bootstrap.go @@ -12,9 +12,9 @@ import ( routing "github.com/jbenet/go-ipfs/routing" u "github.com/jbenet/go-ipfs/util" - context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context" goprocess "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/goprocess" periodicproc "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/goprocess/periodic" + context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context" ) // BootstrapConfig specifies parameters used bootstrapping the DHT. diff --git a/dht_net.go b/dht_net.go index 15b0b63..d84e8e0 100644 --- a/dht_net.go +++ b/dht_net.go @@ -9,8 +9,8 @@ import ( pb "github.com/jbenet/go-ipfs/routing/dht/pb" ctxutil "github.com/jbenet/go-ipfs/util/ctx" - context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context" ggio "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/io" + context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context" ) // handleNewStream implements the inet.StreamHandler diff --git a/dht_test.go b/dht_test.go index b57caac..54a6448 100644 --- a/dht_test.go +++ b/dht_test.go @@ -9,11 +9,10 @@ import ( "testing" "time" - context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context" - ds "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore" dssync "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync" ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr" + context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context" peer "github.com/jbenet/go-ipfs/p2p/peer" netutil "github.com/jbenet/go-ipfs/p2p/test/util" diff --git a/ext_test.go b/ext_test.go index ab756b5..ec5fffa 100644 --- a/ext_test.go +++ b/ext_test.go @@ -5,6 +5,7 @@ import ( "io/ioutil" "math/rand" "testing" + "time" inet "github.com/jbenet/go-ipfs/p2p/net" mocknet "github.com/jbenet/go-ipfs/p2p/net/mock" @@ -14,12 +15,10 @@ import ( record "github.com/jbenet/go-ipfs/routing/record" u "github.com/jbenet/go-ipfs/util" - context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context" ggio "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/io" ds "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore" dssync "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync" - - "time" + context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context" ) func TestGetFailures(t *testing.T) { diff --git a/handlers.go b/handlers.go index 03c3eda..c1e96e4 100644 --- a/handlers.go +++ b/handlers.go @@ -4,9 +4,9 @@ import ( "errors" "fmt" - context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context" proto "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/goprotobuf/proto" ds "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore" + context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context" peer "github.com/jbenet/go-ipfs/p2p/peer" pb "github.com/jbenet/go-ipfs/routing/dht/pb" u "github.com/jbenet/go-ipfs/util" diff --git a/lookup.go b/lookup.go index a713e55..59ef391 100644 --- a/lookup.go +++ b/lookup.go @@ -1,8 +1,7 @@ package dht import ( - context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context" - + context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context" notif "github.com/jbenet/go-ipfs/notifications" peer "github.com/jbenet/go-ipfs/p2p/peer" kb "github.com/jbenet/go-ipfs/routing/kbucket" diff --git a/providers.go b/providers.go index f4f7514..1f95bdf 100644 --- a/providers.go +++ b/providers.go @@ -7,7 +7,7 @@ import ( peer "github.com/jbenet/go-ipfs/p2p/peer" u "github.com/jbenet/go-ipfs/util" - context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context" + context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context" ) type providerInfo struct { diff --git a/providers_test.go b/providers_test.go index 2781a3c..22990d5 100644 --- a/providers_test.go +++ b/providers_test.go @@ -6,7 +6,7 @@ import ( peer "github.com/jbenet/go-ipfs/p2p/peer" u "github.com/jbenet/go-ipfs/util" - context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context" + context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context" ) func TestProviderManager(t *testing.T) { diff --git a/query.go b/query.go index 7a32b45..aacab10 100644 --- a/query.go +++ b/query.go @@ -12,8 +12,8 @@ import ( pset "github.com/jbenet/go-ipfs/util/peerset" todoctr "github.com/jbenet/go-ipfs/util/todocounter" - context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context" ctxgroup "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-ctxgroup" + context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context" ) var maxQueryConcurrency = AlphaValue diff --git a/records.go b/records.go index 0bc7011..c6baf49 100644 --- a/records.go +++ b/records.go @@ -3,8 +3,7 @@ package dht import ( "fmt" - "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context" - + "github.com/jbenet/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context" ci "github.com/jbenet/go-ipfs/p2p/crypto" peer "github.com/jbenet/go-ipfs/p2p/peer" pb "github.com/jbenet/go-ipfs/routing/dht/pb" diff --git a/routing.go b/routing.go index ade41b8..7aa4232 100644 --- a/routing.go +++ b/routing.go @@ -5,8 +5,7 @@ import ( "sync" "time" - context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context" - + context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context" notif "github.com/jbenet/go-ipfs/notifications" inet "github.com/jbenet/go-ipfs/p2p/net" peer "github.com/jbenet/go-ipfs/p2p/peer"