-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
coreunix: fix Add() docs regarding pinning #3513
Conversation
@@ -251,12 +253,14 @@ func (adder *Adder) outputDirs(path string, fsn mfs.FSNode) error { | |||
} | |||
} | |||
|
|||
// Add builds a merkledag from the a reader, pinning all objects to the local | |||
// datastore. Returns a key representing the root node. | |||
// Builds a merkledag node from a reader, adds it to the blockstore, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not golint compliant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed this and the other, and I now have golint installed which looks useful 👍
func Add(n *core.IpfsNode, r io.Reader) (string, error) { | ||
return AddWithContext(n.Context(), n, r) | ||
} | ||
|
||
// Same as Add(), but with a custom context. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also not golint compliant
3b10b44
to
03ad180
Compare
License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org>
03ad180
to
71a03fe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #3470