@cryptotaxi247 / kubo / commits / d93e49e06

fix node context (tests pass)

Juan Batiz-Benet committed Nov 17, 2014 at 22:46 UTC d93e49e06eb1065d5a6a4f4cb0aad2f4bc96e391
1 file changed +1 -1
core/core.go
+1 -1
@@ -111,7 +111,7 @@ func NewIpfsNode(cfg *config.Config, online bool) (n *IpfsNode, err error) {
111 onlineMode: online,
112 Config: cfg,
113 }
114 - n.ContextCloser = ctxc.NewContextCloser(context.TODO(), n.teardown)
114 + n.ContextCloser = ctxc.NewContextCloser(ctx, n.teardown)
115
116 // setup datastore.
117 if n.Datastore, err = makeDatastore(cfg.Datastore); err != nil {