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

feat: update lassie to sync Retriever (after provider rewrite revert) #173

Merged
merged 2 commits into from
Feb 1, 2023

Conversation

rvagg
Copy link
Collaborator

@rvagg rvagg commented Jan 31, 2023

This is #167 but against current master, i.e. with the provider rewrite reverted.

It's using filecoin-project/lassie#54 as the "latest" lassie, because that's the newest incarnation of the interface - taking a linkSystem per retrieval.

Unfortunately this won't build because there's a dependency problem involving the infamous btcd breaking change .. and I don't have the patience today to figure out which bit broke that, maybe the go-data-transfer upgrade? It was working with in #167 with a version of lassie that's not too far off this one.


  • Retriever#Retrieve() calls are now synchronous, so we get to wait for the direct return value and error synchronously
  • Change the AwaitGet call order and make it cancellable
  • Make the provider context-cancel aware for cleaner shutdown
  • Other minor fixes and adaptions to the new Lassie code

* Retriever#Retrieve() calls are now synchronous, so we get to wait for the
  direct return value and error synchronously
* Change the AwaitGet call order and make it cancellable
* Make the provider context-cancel aware for cleaner shutdown
* Other minor fixes and adaptions to the new Lassie code
@rvagg rvagg requested a review from hannahhoward January 31, 2023 10:13
@rvagg rvagg changed the title feat: update lassie to sync Retriever feat: update lassie to sync Retriever (after provider rewrite revert) Jan 31, 2023
@hannahhoward hannahhoward marked this pull request as ready for review February 1, 2023 02:41
@codecov-commenter
Copy link

codecov-commenter commented Feb 1, 2023

Codecov Report

Base: 5.04% // Head: 5.44% // Increases project coverage by +0.40% 🎉

Coverage data is based on head (03956e7) compared to base (c0de64f).
Patch coverage: 14.94% of modified lines in pull request are covered.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #173      +/-   ##
=========================================
+ Coverage    5.04%   5.44%   +0.40%     
=========================================
  Files          15      14       -1     
  Lines        1666    1635      -31     
=========================================
+ Hits           84      89       +5     
+ Misses       1577    1541      -36     
  Partials        5       5              
Impacted Files Coverage Δ
autoretrieve.go 0.00% <0.00%> (ø)
bitswap/provider.go 0.00% <0.00%> (ø)
endpoint/estuary.go 0.00% <0.00%> (ø)
blocks/manager.go 78.50% <92.85%> (+1.05%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@hannahhoward hannahhoward left a comment

Choose a reason for hiding this comment

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

LGTMs

@hannahhoward hannahhoward merged commit 89e0899 into master Feb 1, 2023
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