提交 d93e49e0 作者: Juan Batiz-Benet

fix node context (tests pass)

上级 088016c8
......@@ -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 {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论