-
Notifications
You must be signed in to change notification settings - Fork 720
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
server: move client function to util #5964
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Codecov ReportBase: 75.22% // Head: 75.14% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #5964 +/- ##
==========================================
- Coverage 75.22% 75.14% -0.08%
==========================================
Files 362 362
Lines 36232 36270 +38
==========================================
Hits 27255 27255
- Misses 6601 6642 +41
+ Partials 2376 2373 -3
Flags with carried forward coverage won't be shown. Click here to find out 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. |
Signed-off-by: lhy1024 <admin@liudos.us>
75e5f1f
to
53eedb5
Compare
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.
The rest LGTM, please also change the PR title.
pkg/utils/etcdutil/etcdutil.go
Outdated
@@ -36,6 +36,9 @@ import ( | |||
) | |||
|
|||
const ( | |||
// DefaultEtcdClientTimeout is the default timeout for etcd client. | |||
DefaultEtcdClientTimeout = 3 * time.Second |
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.
Do we need to expose it?
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.
I am not sure whether is used by other servers.
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.
Once it will be used, we can expose it then.
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.
done
Signed-off-by: lhy1024 <admin@liudos.us>
/merge |
@rleungx: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: 6ab4d71
|
close tikv#5837 Signed-off-by: lhy1024 <admin@liudos.us> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
close tikv#5837 Signed-off-by: lhy1024 <admin@liudos.us> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io> Conflicts: pkg/utils/etcdutil/etcdutil.go
Signed-off-by: lhy1024 admin@liudos.us
What problem does this PR solve?
Issue Number: Close #5837
What is changed and how does it work?
Check List
Tests
Release note