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

[WIP] chore: use reuseconn linter instead of bodyclose #2851

Closed
wants to merge 1 commit into from

Conversation

atzoum
Copy link
Contributor

@atzoum atzoum commented Jan 7, 2023

Description

Using reuseconn instead of bodyclose, to ensure that http response's are properly disposed (consumed & closed) by a single function call.

Need to wait until the linter is included in golangci-lint (relevant pr here)

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@atzoum atzoum force-pushed the chore.reuseconn branch 4 times, most recently from 0514bbf to 5d88984 Compare January 7, 2023 12:34
@codecov
Copy link

codecov bot commented Jan 7, 2023

Codecov Report

Base: 47.42% // Head: 47.53% // Increases project coverage by +0.10% 🎉

Coverage data is based on head (acfd1c1) compared to base (f1d3d03).
Patch coverage: 70.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2851      +/-   ##
==========================================
+ Coverage   47.42%   47.53%   +0.10%     
==========================================
  Files         310      310              
  Lines       49653    49674      +21     
==========================================
+ Hits        23548    23611      +63     
+ Misses      24668    24617      -51     
- Partials     1437     1446       +9     
Impacted Files Coverage Δ
enterprise/reporting/reporting.go 15.80% <0.00%> (ø)
services/alert/pagerduty.go 0.00% <0.00%> (ø)
services/alert/victorops.go 0.00% <0.00%> (ø)
utils/misc/misc.go 46.39% <0.00%> (-0.16%) ⬇️
warehouse/testhelper/events.go 0.00% <0.00%> (ø)
warehouse/testhelper/setup.go 0.00% <0.00%> (ø)
warehouse/utils/utils.go 69.49% <0.00%> (-0.26%) ⬇️
router/transformer/transformer.go 69.70% <83.33%> (+1.05%) ⬆️
config/backend-config/namespace_config.go 70.00% <100.00%> (ø)
config/backend-config/single_workspace.go 79.82% <100.00%> (ø)
... and 33 more

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.

@github-actions
Copy link

This PR is considered to be stale. It has been open 20 days with no further activity thus it is going to be closed in 5 days. To avoid such a case please consider removing the stale label manually or add a comment to the PR.

@github-actions github-actions bot added the Stale label Jan 28, 2023
@github-actions github-actions bot closed this Feb 5, 2023
@github-actions github-actions bot deleted the chore.reuseconn branch March 8, 2023 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant