Skip to content

Commit

Permalink
Merge #3767
Browse files Browse the repository at this point in the history
3767: [Network] Fix inbound message metrics label r=peterargue a=peterargue

`PayloadType()` is used when generating incoming metrics labels. `m.msg.Payload` is always a byte slice, whereas `m.decodedPayload` is the actual message struct

Co-authored-by: Peter Argue <89119817+peterargue@users.noreply.github.com>
  • Loading branch information
bors[bot] and peterargue authored Jan 10, 2023
2 parents d6f8335 + a9e74af commit fdb0ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/message_scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (m IncomingMessageScope) EventID() []byte {
}

func (m IncomingMessageScope) PayloadType() string {
return MessageType(m.msg.Payload)
return MessageType(m.decodedPayload)
}

// OutgoingMessageScope captures the context around an outgoing message that is about to be sent.
Expand Down

0 comments on commit fdb0ee4

Please sign in to comment.