-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Revert "Revert "[objc] GRPCMetadataDictionary convenient typedef"" #27882
Conversation
internal TGP train check all pass, this one ready to re-land, thanks |
1901b2d
to
011ce1a
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.
Thanks Denny. Comments inline :)
@@ -192,3 +192,6 @@ typedef char* _Nonnull GRPCTransportID; | |||
- (void)getTokenWithHandler:(void (^_Nonnull)(NSString* _Nullable token))handler; | |||
|
|||
@end | |||
|
|||
/** gRPC metadata dictionary typedef */ | |||
typedef NSDictionary<NSString*, id<NSCopying>> GRPCMetadataDictionary; |
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.
Changing id
-> id<NSCopying>
would potentially break some 3rd party users, is that right? Is this change totally necessary?
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.
updating this to id to avoid breaking changes in the API.
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.
Thanks LGTM now! :)
@@ -279,7 +279,7 @@ NS_ASSUME_NONNULL_BEGIN | |||
* Dictionary key is of type NSString, value should be either NSString or NSData containing binary |
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.
Consider moving 2 similar comments to GRPCMetadataDictionary
?
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.
thanks. this part is specific to initialMetadata (either NSString // NSData for the value type). GRPCMetadataDictionary are the more generic definition which also need to apply to e.g. additionalChannelArgs.
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.
ohh i see! Thanks for clarification! :)
011ce1a
to
bc77067
Compare
Reverts #27877