Skip to content

Commit

Permalink
chore: Fix label order (#4172)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellorigotti authored Oct 30, 2023
1 parent 3e5d98d commit 5c3b307
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/multisig/src/client/ceremony_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ impl<Chain: ChainSigning> CeremonyManager<Chain> {
match deserialize_for_version::<Chain::CryptoScheme>(data) {
Ok(message) => self.process_p2p_message(sender_id, message, scope),
Err(_) => {
CEREMONY_BAD_MSG.inc(&["deserialize_for_version", Chain::NAME]);
CEREMONY_BAD_MSG.inc(&[Chain::NAME, "deserialize_for_version"]);
warn!("Failed to deserialize message from: {sender_id}");
},
}
Expand Down Expand Up @@ -721,11 +721,11 @@ impl<Ceremony: CeremonyTrait> CeremonyStates<Ceremony> {
// ceremonies
let ceremony_id_string = ceremony_id_string::<Chain>(ceremony_id);
if ceremony_id > latest_ceremony_id + Chain::CEREMONY_ID_WINDOW {
CEREMONY_BAD_MSG.inc(&["unexpected_future_ceremony_id", Chain::NAME]);
CEREMONY_BAD_MSG.inc(&[Chain::NAME, "unexpected_future_ceremony_id"]);
warn!("Ignoring data: unexpected future ceremony id {ceremony_id_string}",);
return
} else if ceremony_id <= latest_ceremony_id {
CEREMONY_BAD_MSG.inc(&["old_ceremony_id", Chain::NAME]);
CEREMONY_BAD_MSG.inc(&[Chain::NAME, "old_ceremony_id"]);
trace!("Ignoring data: old ceremony id {ceremony_id_string}",);
return
} else {
Expand Down

0 comments on commit 5c3b307

Please sign in to comment.