-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
server/admin: Encode protocol buffers in accordance with the spec #6587
Conversation
// Unmarshal unmarshals JSON "data" into "v" | ||
func (j *JSONPb) Unmarshal(data []byte, v interface{}) error { | ||
if pb, ok := v.(proto.Message); ok { | ||
return proto.Unmarshal(data, pb) |
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.
jsonpb.Unmarshal ?
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.
fixed, thanks
|
Nothing of note here, just doing it while I'm updating grpc et al.
Review status: 1 of 13 files reviewed at latest revision, 3 unresolved discussions, some commit checks pending. GLOCKFILE, line 22 [r5] (raw file):
|
|
@mrtracy this should encode protos correctly; can you verify?
This change is