Commit d93e49e0 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

fix node context (tests pass)

parent 088016c8
...@@ -111,7 +111,7 @@ func NewIpfsNode(cfg *config.Config, online bool) (n *IpfsNode, err error) { ...@@ -111,7 +111,7 @@ func NewIpfsNode(cfg *config.Config, online bool) (n *IpfsNode, err error) {
onlineMode: online, onlineMode: online,
Config: cfg, Config: cfg,
} }
n.ContextCloser = ctxc.NewContextCloser(context.TODO(), n.teardown) n.ContextCloser = ctxc.NewContextCloser(ctx, n.teardown)
// setup datastore. // setup datastore.
if n.Datastore, err = makeDatastore(cfg.Datastore); err != nil { if n.Datastore, err = makeDatastore(cfg.Datastore); err != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment