-
Notifications
You must be signed in to change notification settings - Fork 4.5k
cleanup: remove unused constants in generic xdsclient #8315
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
Conversation
CONTRIBUTING.md
Outdated
@@ -87,7 +87,7 @@ How to get your contributions merged smoothly and quickly: | |||
|
|||
- The grpc package should only depend on standard Go packages and a small number | |||
of exceptions. **If your contribution introduces new dependencies**, you will | |||
need a discussion with gRPC-Go maintainers. A github action check will run on | |||
need a discussion with gRPC-Go maintainers. A Github action check will run on |
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.
Apparently we have a special linter that will want this to be written as GitHub
everywhere.
need a discussion with gRPC-Go maintainers. A Github action check will run on | |
need a discussion with gRPC-Go maintainers. A GitHub action check will run on |
@@ -221,7 +216,7 @@ func (c *XDSClient) Close() { | |||
// A non-nil error is returned if an xdsChannel was not created. | |||
func (c *XDSClient) getChannelForADS(serverConfig *ServerConfig, callingAuthority *authority) (*xdsChannel, func(), error) { | |||
if c.done.HasFired() { | |||
return nil, nil, ErrClientClosed | |||
return nil, nil, errClientClosed |
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.
Given that it's used exactly once, let's just inline it.
The comment on it became stale anyway.
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.
In future, please avoid combining unrelated changes like this.
- Create small PRs that are narrowly focused on addressing a single concern.
If you wouldn't mind splitting this one up, that would be great, too.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8315 +/- ##
==========================================
- Coverage 82.19% 82.17% -0.03%
==========================================
Files 419 419
Lines 41992 41990 -2
==========================================
- Hits 34516 34504 -12
- Misses 6008 6016 +8
- Partials 1468 1470 +2
🚀 New features to boost your workflow:
|
I have remove the contributing.md change from this PR |
Thanks! |
RELEASE NOTES: None