提交 c8631aa5 作者: Łukasz Magiera 提交者: Jeromy

dag: fix provide logic

License: MIT
Signed-off-by: 's avatarŁukasz Magiera <magik6k@gmail.com>
上级 040f8b16
...@@ -139,7 +139,7 @@ into an object of the specified format. ...@@ -139,7 +139,7 @@ into an object of the specified format.
cids.ForEach(func(c *cid.Cid) error { cids.ForEach(func(c *cid.Cid) error {
n.Pinning.PinWithMode(c, pin.Recursive) n.Pinning.PinWithMode(c, pin.Recursive)
return n.Providers.Provide(c) return nil
}) })
err := n.Pinning.Flush() err := n.Pinning.Flush()
...@@ -148,7 +148,9 @@ into an object of the specified format. ...@@ -148,7 +148,9 @@ into an object of the specified format.
} }
} }
return nil return cids.ForEach(func(c *cid.Cid) error {
return n.Providers.Provide(c)
})
} }
go func() { go func() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论