Skip to content
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

Merged
merged 1 commit into from
Dec 20, 2016

Conversation

ghost
Copy link

@ghost ghost commented Dec 16, 2016

Fixes #3470

@ghost ghost added topic/commands:add Topic commands:add topic/docs-ipfs Topic docs-ipfs status/in-progress In progress labels Dec 16, 2016
@@ -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,
Copy link
Contributor

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

Copy link
Author

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also not golint compliant

@ghost ghost force-pushed the fix/coreunix-add-docs branch from 3b10b44 to 03ad180 Compare December 18, 2016 00:06
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
@ghost ghost force-pushed the fix/coreunix-add-docs branch from 03ad180 to 71a03fe Compare December 18, 2016 00:09
@ghost ghost added the RFM label Dec 18, 2016
Copy link
Member

@whyrusleeping whyrusleeping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@whyrusleeping whyrusleeping merged commit 8b66463 into master Dec 20, 2016
@whyrusleeping whyrusleeping deleted the fix/coreunix-add-docs branch December 20, 2016 22:09
@whyrusleeping whyrusleeping removed the status/in-progress In progress label Dec 20, 2016
@ghost ghost mentioned this pull request Dec 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFM topic/commands:add Topic commands:add topic/docs-ipfs Topic docs-ipfs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants