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

dag: deduplicate AddNodeLinkClean into AddNodeLink #4940

Merged
merged 1 commit into from
Apr 17, 2018
Merged

dag: deduplicate AddNodeLinkClean into AddNodeLink #4940

merged 1 commit into from
Apr 17, 2018

Conversation

schomatis
Copy link
Contributor

Closes #4729.

@schomatis schomatis requested a review from Kubuxu as a code owner April 16, 2018 20:50
Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

Thanks!

@whyrusleeping for context, AddNodeLink used to cache the linked node but was, at some point, changed to do the same thing as AddNodeLinkClean (i.e., not cache the linked node). That is, they now do the same thing so there's no reason to have both.

@Stebalien Stebalien added the RFM label Apr 17, 2018
@schomatis
Copy link
Contributor Author

@Stebalien Thanks for that clarifying comment, I'll add it to the commit message.

`AddNodeLink` used to cache the linked node whereas `AddNodeLinkClean`
did not, however, at some point the former was changed to do the same
thing as the latter (i.e., not cache the linked node). That is, they now
do the same thing so there's no reason to have both.

The name `AddNodeLink` is preserved, even though it used to imply the
cache functionality contrasting with the `Clean` suffix of
`AddNodeLinkClean`, with this function removed the cache connotation
doesn't hold anymore.

License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
@whyrusleeping whyrusleeping merged commit 54a3556 into ipfs:master Apr 17, 2018
@schomatis schomatis deleted the fix/dag/dedup-addnodelink branch April 17, 2018 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants