Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
internal/delegatingresolver: avoid proxy if networktype of target address is not tcp #8215
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
internal/delegatingresolver: avoid proxy if networktype of target address is not tcp #8215
Changes from 31 commits
751dd5e
4476246
39d3ded
fcbc507
618877a
d150d8e
325e8cb
f2a6133
8742ea7
607ec91
d254b04
cfe7e4f
e8e8438
b941b53
fc393ba
00c62de
a98a62f
2d449cb
0f831a1
aa60db2
854daca
d4942ba
821475e
a3fa521
9b384af
8f157d8
94c1f47
7c5ad78
1aa9f1c
0049fa9
bf57c2c
6e77ff3
fa78c83
1679375
0a50ca5
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 144 in internal/resolver/delegatingresolver/delegatingresolver.go
internal/resolver/delegatingresolver/delegatingresolver.go#L144
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.
There is a lot of repetition between this comment and the one at the top of this method. Can you make this one more concise?
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.
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 see this
StateListener
being mentioned in a couple of places. There is no such method on theresolver.ClientConn
interface.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.
Its a method on the wrappingClientConn , used to call different update state functions for proxy and target resolver. Should that not be mentioned in the comments? or is the use not clear ?
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 don't see any method names
StateListener
on thewrappingClientConn
. Am I missing something?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.
https://github.com/grpc/grpc-go/pull/8215/files#r2073756977 , I see the stateListener function here, or am I misunderstanding the comment ?
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.
Ah, Ok, I was searching for
StateListener
, while the field isstateListener
. Case sensitive :)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.
nit: We can invert the check to return early, reducing one level of indentation.
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.
Right! Done!
Check warning on line 360 in internal/resolver/delegatingresolver/delegatingresolver.go
internal/resolver/delegatingresolver/delegatingresolver.go#L358-L360