Commit 3dd68ba5 authored by Brian Tiger Chow's avatar Brian Tiger Chow

fix(core_io/Add): by default, use pinner

@whyrusleeping @jbenet does passing this argument effectively instruct
the dagbuilder to pin recursively?
parent 4b5ff960
......@@ -25,7 +25,7 @@ func Add(n *core.IpfsNode, r io.Reader) (u.Key, error) {
dagNode, err := importer.BuildDagFromReader(
r,
n.DAG,
nil,
n.Pinning.GetManual(), // Fix this interface
chunk.DefaultSplitter,
)
if err != nil {
......
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