-
Notifications
You must be signed in to change notification settings - Fork 12
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
fix: correct method for supportedTransports #692
Conversation
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.
Great catch. LGTM.
@@ -229,8 +229,8 @@ private static function defaultTransport() | |||
return 'rest'; | |||
} | |||
|
|||
/** Implements GapicClientTrait::getSupportedTransports. */ | |||
private static function getSupportedTransports() | |||
/** Implements GapicClientTrait::supportedTransports. */ |
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.
Curious Q: How did you catch this?
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 was reviewing @yash30201 's doc on Storage V2, and how it only will support grpc
, so I wanted to check what the method was that we'd need to generate (which is this one), and noticed the names were different between here and GAX.
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.
...it would be better if we had a test, though.
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.
Test added!
Woops! We've been writing the wrong method name all this time. The method is actually
supportedTransports
, but we've been generatinggetSupportedTransports
. OH NO!See
ClientOptionsTrait::supportedTransports
(called here)