Skip to content

Commit

Permalink
Merge pull request #19 from zchee/grpcreplay/any
Browse files Browse the repository at this point in the history
grpcreplay: fix any interface alias type shadowing
  • Loading branch information
jba authored Oct 16, 2022
2 parents 5c964d3 + 14413a9 commit fa6d72a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grpcreplay/grpcreplay.go
Original file line number Diff line number Diff line change
Expand Up @@ -716,14 +716,14 @@ func readEntry(r io.Reader) (*entry, error) {
}
var msg message
if pe.Message != nil {
any, err := pe.Message.UnmarshalNew()
a, err := pe.Message.UnmarshalNew()
if err != nil {
return nil, err
}
if pe.IsError {
msg.err = status.ErrorProto(any.ProtoReflect().Interface().(*spb.Status))
msg.err = status.ErrorProto(a.ProtoReflect().Interface().(*spb.Status))
} else {
msg.msg = any.ProtoReflect().Interface()
msg.msg = a.ProtoReflect().Interface()
}
} else if pe.IsError {
msg.err = io.EOF
Expand Down

0 comments on commit fa6d72a

Please sign in to comment.