Skip to content

Commit

Permalink
Fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma233 committed Jul 2, 2023
1 parent 76df97a commit c7e53bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/src/message/protocols/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ impl MessageVerification {
/// Verify a MessageVerification
pub fn verify<T>(&self, data: &T) -> bool
where T: Serialize {
let Ok(msg) = self.msg(data) else {tracing::warn!("MessageVerification pack_msg failed"); return false};
let Ok(msg) = self.msg(data) else {
tracing::warn!("MessageVerification pack_msg failed");
return false
};

self.session
.verify(&msg, &self.sig)
Expand Down

0 comments on commit c7e53bc

Please sign in to comment.