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

Remove use of deprecated net.Error.Temporary() #415

Merged
merged 2 commits into from
Mar 28, 2022

Conversation

Tristan-Wilson
Copy link
Member

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

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).
Copy link
Contributor

@PlasmaPower PlasmaPower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@hkalodner hkalodner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@PlasmaPower PlasmaPower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hkalodner hkalodner enabled auto-merge (rebase) March 28, 2022 20:46
auto-merge was automatically disabled March 28, 2022 21:03

Rebase failed

@codecov
Copy link

codecov bot commented Mar 28, 2022

Codecov Report

Merging #415 (1cd9504) into master (eb048fc) will increase coverage by 0.03%.
The diff coverage is 0.00%.

@@            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     

Copy link
Member

@joshuacolvin0 joshuacolvin0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Tristan-Wilson Tristan-Wilson merged commit d895965 into master Mar 28, 2022
@hkalodner hkalodner deleted the go-1.18-lint-fix branch March 29, 2022 23:57
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.

4 participants