-
Notifications
You must be signed in to change notification settings - Fork 497
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
Remove use of deprecated net.Error.Temporary() #415
Conversation
This is deprecated in 1.18 and picked up as an error in newer versions of golangci-lint (at least since 1.45.2 and beyond).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Rebase failed
Codecov Report
@@ Coverage Diff @@
## master #415 +/- ##
==========================================
+ Coverage 48.47% 48.50% +0.03%
==========================================
Files 168 168
Lines 17510 17510
Branches 458 458
==========================================
+ Hits 8488 8494 +6
+ Misses 7802 7793 -9
- Partials 1220 1223 +3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is deprecated in 1.18 and picked up as an error in newer versions
of golangci-lint (at least since 1.45.2 and beyond).
Timeout() cover a subset of the errors in Temporary() so it should be safe in this case because I think the intent of the code is to retry on recoverable errors. See discussion of the deprecation here: golang/go#45729