hotfix: dont use nodes context because it might not be set yet
Jeromy committed
Apr 30, 2015 at 14:11 UTC
9e6866f52f3e919caf6fa93ec7b0469d5ddde992
1 file changed
+1
-1
core/core.go
+1
-1
@@ -292,7 +292,7 @@ func setupDiscoveryOption(d config.Discovery) DiscoveryOption {
292
293
func (n *IpfsNode) HandlePeerFound(p peer.PeerInfo) {
294
log.Warning("trying peer info: ", p)
295
- ctx, _ := context.WithTimeout(n.Context(), time.Second*10)
295
+ ctx, _ := context.WithTimeout(context.TODO(), time.Second*10)
296
err := n.PeerHost.Connect(ctx, p)
297
if err != nil {
298
log.Warning("Failed to connect to peer found by discovery: ", err)