@cryptotaxi247 / kubo / commits / f9395b766

fix: flush the pinner

Brian Tiger Chow committed Jan 24, 2015 at 11:21 UTC f9395b7667aa91e14477688dcb1b924aace97744
1 file changed +3 -1
core/coreunix/add.go
+3 -1
@@ -29,7 +29,9 @@ func Add(n *core.IpfsNode, r io.Reader) (u.Key, error) {
29 if err != nil {
30 return "", err
31 }
32 - // TODO(btc): is it necessary to flush the pinner?
32 + if err := n.Pinning.Flush(); err != nil {
33 + return "", err
34 + }
35 return dagNode.Key()
36 }
37