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

Provide root node immediately on add and pin add #6068

Merged
merged 13 commits into from
Mar 20, 2019

Conversation

michaelavila
Copy link
Contributor

@michaelavila michaelavila commented Mar 8, 2019

Provide root node immediately when ipfs add <cid> and ipfs pin add <cid>.

This PR introduces part of the new provider subsystem from the rest of the ongoing provider work so it's more extensive than it might otherwise have been. This seemed like a good way to merge some of that work and begin using it. And he work to get this PR mergeable will get folded back into #5870

Addresses: #6067

@michaelavila michaelavila added the status/WIP This a Work In Progress label Mar 8, 2019
@ghost ghost assigned michaelavila Mar 8, 2019
@ghost ghost added the status/in-progress In progress label Mar 8, 2019
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
@michaelavila michaelavila force-pushed the features/provide-roots-on-add-and-pin branch from 9301556 to a9b6534 Compare March 8, 2019 22:28
This is being removed because it appears that the provide announcements
go out regardless of the timeout.

License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
@michaelavila michaelavila force-pushed the features/provide-roots-on-add-and-pin branch 4 times, most recently from fdcf655 to dafc9de Compare March 9, 2019 01:08
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
@michaelavila michaelavila force-pushed the features/provide-roots-on-add-and-pin branch from dafc9de to dde397e Compare March 11, 2019 16:55
@ghost ghost assigned eingenito Mar 14, 2019
Erik Ingenito added 2 commits March 14, 2019 16:54
License: MIT
Signed-off-by: Erik Ingenito <erik@carbonfive.com>
License: MIT
Signed-off-by: Erik Ingenito <erik@carbonfive.com>
@eingenito eingenito force-pushed the features/provide-roots-on-add-and-pin branch 2 times, most recently from a36a278 to 6cefbb6 Compare March 15, 2019 18:10
License: MIT
Signed-off-by: Erik Ingenito <erik@carbonfive.com>
@eingenito eingenito force-pushed the features/provide-roots-on-add-and-pin branch from 6cefbb6 to 5d4f3fb Compare March 15, 2019 18:23
Erik Ingenito added 2 commits March 15, 2019 14:19
License: MIT
Signed-off-by: Erik Ingenito <erik@carbonfive.com>
License: MIT
Signed-off-by: Erik Ingenito <erik@carbonfive.com>
@eingenito eingenito force-pushed the features/provide-roots-on-add-and-pin branch from 25474eb to 7fcafb6 Compare March 15, 2019 23:47
License: MIT
Signed-off-by: Erik Ingenito <erik@carbonfive.com>
@eingenito eingenito force-pushed the features/provide-roots-on-add-and-pin branch 2 times, most recently from 55f02ea to 2454dd3 Compare March 16, 2019 04:15
@eingenito eingenito changed the title [WIP] Provide root node immediately when add and pin add Provide root node immediately when add and pin add Mar 16, 2019
@eingenito eingenito force-pushed the features/provide-roots-on-add-and-pin branch from 2454dd3 to 47fb37f Compare March 16, 2019 04:19
@eingenito eingenito removed the status/WIP This a Work In Progress label Mar 16, 2019
@eingenito eingenito changed the title Provide root node immediately when add and pin add Provide root node immediately on add and pin add Mar 16, 2019
Erik Ingenito added 2 commits March 16, 2019 09:53
License: MIT
Signed-off-by: Erik Ingenito <erik@carbonfive.com>
License: MIT
Signed-off-by: Erik Ingenito <erik@carbonfive.com>
@eingenito eingenito force-pushed the features/provide-roots-on-add-and-pin branch from 47fb37f to 09cc62e Compare March 16, 2019 16:54
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.

My only real comment is on querying the datastore. Otherwise, LGTM!

Thanks!

core/core.go Outdated Show resolved Hide resolved
provider/provider.go Outdated Show resolved Hide resolved
provider/queue.go Show resolved Hide resolved
provider/provider.go Show resolved Hide resolved
@Stebalien
Copy link
Member

@michaelavila let's add some docs and then we can merge this and fix the dht query stuff later.

@michaelavila michaelavila force-pushed the features/provide-roots-on-add-and-pin branch from 13e417e to f1461d2 Compare March 20, 2019 21:15
@michaelavila
Copy link
Contributor Author

@Stebalien I believe all feedback was correctly accounted for. Please advise if not.

@michaelavila michaelavila force-pushed the features/provide-roots-on-add-and-pin branch from f1461d2 to e4badd3 Compare March 20, 2019 21:18
provider/provider.go Outdated Show resolved Hide resolved
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
@michaelavila
Copy link
Contributor Author

@Stebalien Ok, thanks for looking. Updated as suggested. One note: my conditional is the opposite of yours, but I think yours was just a typo.

@michaelavila michaelavila force-pushed the features/provide-roots-on-add-and-pin branch from e4badd3 to 019af75 Compare March 20, 2019 22:16
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.

Yes, my conditional was just a typo. Let's ship this!

@Stebalien Stebalien merged commit 2ec7bef into master Mar 20, 2019
@ghost ghost removed the status/in-progress In progress label Mar 20, 2019
@Stebalien
Copy link
Member

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants