Skip to content

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

Merged
hannahhoward merged 2 commits intomasterfrom
rvagg/lassie-update-provider-revert
Feb 1, 2023
Merged

feat: update lassie to sync Retriever (after provider rewrite revert)#173
hannahhoward merged 2 commits intomasterfrom
rvagg/lassie-update-provider-revert

Conversation

@rvagg
Copy link
Copy Markdown
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
Copy Markdown

codecov-commenter commented Feb 1, 2023

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 14.94253% with 74 lines in your changes missing coverage. Please review.
✅ Project coverage is 5.44%. Comparing base (c0de64f) to head (03956e7).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
bitswap/provider.go 0.00% 60 Missing ⚠️
autoretrieve.go 0.00% 10 Missing ⚠️
endpoint/estuary.go 0.00% 3 Missing ⚠️
blocks/manager.go 92.85% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
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              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
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