Commit f9395b76 authored by Brian Tiger Chow's avatar Brian Tiger Chow

fix: flush the pinner

parent 7f6bd280
......@@ -29,7 +29,9 @@ func Add(n *core.IpfsNode, r io.Reader) (u.Key, error) {
if err != nil {
return "", err
}
// TODO(btc): is it necessary to flush the pinner?
if err := n.Pinning.Flush(); err != nil {
return "", err
}
return dagNode.Key()
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment