Skip to content

Commit

Permalink
grpcreplay: fix any interface alias type shadowing
Browse files Browse the repository at this point in the history
Signed-off-by: Koichi Shiraishi <[email protected]>
  • Loading branch information
zchee committed Oct 15, 2022
1 parent 3f199e6 commit 14413a9
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 @@ -719,14 +719,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 14413a9

Please sign in to comment.