Skip to content

Commit

Permalink
Merge pull request #4129 from eval-exec/exec/fix-RelayV3-message-name
Browse files Browse the repository at this point in the history
Fix parse `RelayV3`'s message name for metrics service
  • Loading branch information
quake authored Aug 31, 2023
2 parents 342946b + a3916d2 commit e585192
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sync/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ fn message_name<Message: Entity>(protocol_id: ProtocolId, message: &Message) ->
.to_enum()
.item_name()
.to_owned()
} else if protocol_id == SupportProtocols::RelayV2.protocol_id() {
} else if protocol_id == SupportProtocols::RelayV2.protocol_id()
|| protocol_id == SupportProtocols::RelayV3.protocol_id()
{
RelayMessageReader::new_unchecked(message.as_slice())
.to_enum()
.item_name()
Expand Down

0 comments on commit e585192

Please sign in to comment.