Skip to content

Commit

Permalink
fix(core) closer should get the same base context
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
  • Loading branch information
Brian Tiger Chow committed Nov 18, 2014
1 parent 6b2adf8 commit 1db6e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1db6e5d

Please sign in to comment.