mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 10:49:24 +08:00
fix(cli) tear down node
This commit is contained in:

committed by
Juan Batiz-Benet

parent
440c90be24
commit
084ffd97aa
@ -177,6 +177,7 @@ func callCommand(req cmds.Request, root *cmds.Command) cmds.Response {
|
|||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
defer node.Close()
|
||||||
req.Context().Node = node
|
req.Context().Node = node
|
||||||
|
|
||||||
res = root.Call(req)
|
res = root.Call(req)
|
||||||
|
Reference in New Issue
Block a user