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

Use echo writer for retrieve #348

Merged
merged 2 commits into from
Oct 12, 2023
Merged

Use echo writer for retrieve #348

merged 2 commits into from
Oct 12, 2023

Conversation

hannahhoward
Copy link
Contributor

@hannahhoward hannahhoward commented Sep 23, 2023

Goals

fix filecoin-project/motion#135

Implementation

I have no idea why not using the underlying HTTP writer fixes the above issue but it most definitely does. Why one would leave a Writer struct member public when using it creates a subtle bug is a mystery to me. I'll take it up with the Echo people.

My hypothesis is the the underlying writer implements ReadFrom and somehow this messes things up. I dunno, or maybe Echo just wants you to work through the response directly.

@codecov
Copy link

codecov bot commented Sep 23, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (f9f9d75) 74.32% compared to head (14850c1) 74.26%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #348      +/-   ##
==========================================
- Coverage   74.32%   74.26%   -0.07%     
==========================================
  Files         143      143              
  Lines        9433     9433              
==========================================
- Hits         7011     7005       -6     
- Misses       1708     1712       +4     
- Partials      714      716       +2     
Files Coverage Δ
api/retrieve.go 53.84% <100.00%> (ø)

... and 2 files with indirect coverage changes

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

@gammazero gammazero merged commit f39d1bd into main Oct 12, 2023
@gammazero gammazero deleted the feat/fix-writer branch October 12, 2023 01:48
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.

Bug in bytes retrieved from singularity
3 participants