-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
test(server/grpc): avoid using deprecated protoreflect function #15221
Conversation
NewClient was deprecated in favor of NewClientAuto, in jhump/protoreflect v1.14.0. Dependabot recently updated us from v1.12 to v1.15, and the linter has been complaining about the use of the deprecated function.
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.
ty, I've seen it but wasn't sure which was the right option
Same, there are a few new features in v1.15. |
// NOTE(fdymylja): we use grpcreflect because it solves imports too | ||
// so that we can always assert that given a reflection server it is | ||
// possible to fully query all the methods, without having any context | ||
// on the proto registry | ||
rc := grpcreflect.NewClient(ctx, stub) | ||
rc := grpcreflect.NewClientAuto(ctx, s.conn) |
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.
Why not NewClientV1Alpha
to keep the same behavior?
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 deprecation note says:
Use NewClientV1Alpha if you are intentionally pinning the v1alpha version of the reflection service.
I don't imagine we are intentionally pinning v1alpha here, are we?
Description
NewClient was deprecated in favor of NewClientAuto, in jhump/protoreflect v1.14.0. Dependabot recently updated us from v1.12 to v1.15, and the linter has been complaining about the use of the deprecated function.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
provided a link to the relevant issue or specificationreviewed "Files changed" and left comments if necessaryReviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...