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

Fix leak when find client returns not found #137

Merged
merged 4 commits into from
Nov 21, 2023
Merged

Conversation

gammazero
Copy link
Collaborator

The find client is not closing the response body when it gets a not found response. This PR fixes that.

The find client is not closing the response body when it gets a not found response. This PR fixes that.
@codecov-commenter
Copy link

codecov-commenter commented Nov 21, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (81798c1) 61.45% compared to head (22e01fe) 61.31%.

Files Patch % Lines
dagsync/ipnisync/sync.go 66.66% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #137      +/-   ##
==========================================
- Coverage   61.45%   61.31%   -0.14%     
==========================================
  Files          57       57              
  Lines        4929     4930       +1     
==========================================
- Hits         3029     3023       -6     
- Misses       1573     1580       +7     
  Partials      327      327              

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

@gammazero gammazero merged commit 9524bdc into main Nov 21, 2023
7 checks passed
@gammazero gammazero deleted the fix-leak-on-find-fail branch November 21, 2023 07:33
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.

2 participants