mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 00:39:31 +08:00
fix node context (tests pass)
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user