提交 30f482ed 作者: Łukasz Magiera

dag: fix codeclimate

License: MIT
Signed-off-by: 's avatarŁukasz Magiera <magik6k@gmail.com>
上级 5da8368a
...@@ -33,10 +33,12 @@ to deprecate and replace the existing 'ipfs object' command moving forward. ...@@ -33,10 +33,12 @@ to deprecate and replace the existing 'ipfs object' command moving forward.
}, },
} }
// OutputObject is the output type of 'dag put' command
type OutputObject struct { type OutputObject struct {
Cid *cid.Cid Cid *cid.Cid
} }
// ResolveOutput is the output type of 'dag resolve' command
type ResolveOutput struct { type ResolveOutput struct {
Cid *cid.Cid Cid *cid.Cid
RemPath string RemPath string
...@@ -191,6 +193,7 @@ var DagGetCmd = &cmds.Command{ ...@@ -191,6 +193,7 @@ var DagGetCmd = &cmds.Command{
}, },
} }
// DagResolveCmd returns address of highest block within a path and a path remainder
var DagResolveCmd = &cmds.Command{ var DagResolveCmd = &cmds.Command{
Helptext: cmds.HelpText{ Helptext: cmds.HelpText{
Tagline: "Resolve ipld block", Tagline: "Resolve ipld block",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论