From d93e49e06eb1065d5a6a4f4cb0aad2f4bc96e391 Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet Date: Mon, 17 Nov 2014 22:46:50 -0800 Subject: [PATCH] fix node context (tests pass) --- core/core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core.go b/core/core.go index 81f64e764..716369826 100644 --- a/core/core.go +++ b/core/core.go @@ -111,7 +111,7 @@ func NewIpfsNode(cfg *config.Config, online bool) (n *IpfsNode, err error) { onlineMode: online, Config: cfg, } - n.ContextCloser = ctxc.NewContextCloser(context.TODO(), n.teardown) + n.ContextCloser = ctxc.NewContextCloser(ctx, n.teardown) // setup datastore. if n.Datastore, err = makeDatastore(cfg.Datastore); err != nil {