-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
clientv3: deprecate grpc.ErrClientConnTimeout errors #8505
Conversation
Replace with context.DeadlineExceeded. Address etcd-io#8504. Signed-off-by: Gyu-Ho Lee <[email protected]>
Signed-off-by: Gyu-Ho Lee <[email protected]>
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 thanks
Endpoints: []string{"http://254.0.0.1:12345"}, | ||
DialTimeout: 2 * time.Second | ||
}) | ||
err == grpc.ErrClientConnTimeout |
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.
if err == grpc.ErrClientConnTimeout {
?
Endpoints: []string{"http://254.0.0.1:12345"}, | ||
DialTimeout: 2 * time.Second | ||
}) | ||
err == context.DeadlineExceeded |
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.
if err == grpc.ErrClientConnTimeout {
?
Signed-off-by: Gyu-Ho Lee <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #8505 +/- ##
=========================================
Coverage ? 75.66%
=========================================
Files ? 358
Lines ? 29094
Branches ? 0
=========================================
Hits ? 22015
Misses ? 5529
Partials ? 1550
Continue to review full report at Codecov.
|
Address #8504.