mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 03:19:47 +08:00
remove context from context
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
@ -97,13 +97,13 @@ baz
|
||||
cmds.StringOption("ipns-path", "n", "The path where IPNS should be mounted"),
|
||||
},
|
||||
Run: func(req cmds.Request, res cmds.Response) {
|
||||
cfg, err := req.Context().GetConfig()
|
||||
cfg, err := req.InvocContext().GetConfig()
|
||||
if err != nil {
|
||||
res.SetError(err, cmds.ErrNormal)
|
||||
return
|
||||
}
|
||||
|
||||
node, err := req.Context().GetNode()
|
||||
node, err := req.InvocContext().GetNode()
|
||||
if err != nil {
|
||||
res.SetError(err, cmds.ErrNormal)
|
||||
return
|
||||
|
Reference in New Issue
Block a user