Correct weird formatting

This commit is contained in:
Luke Parker
2022-11-13 20:18:47 -05:00
parent 33e52ae79a
commit 2408fd8500

View File

@@ -229,17 +229,17 @@ impl<T: TendermintValidator> TendermintAuthority<T> {
// Received a message // Received a message
msg = recv.next() => { msg = recv.next() => {
if let Some(msg) = msg { if let Some(msg) = msg {
messages.send(match SignedMessage::decode(&mut msg.message.as_ref()) { messages.send(
Ok(msg) => msg, match SignedMessage::decode(&mut msg.message.as_ref()) {
Err(e) => { Ok(msg) => msg,
// This is guaranteed to be valid thanks to to the gossip validator, assuming Err(e) => {
// that pipeline is correct. That's why this doesn't panic // This is guaranteed to be valid thanks to to the gossip validator, assuming
error!(target: "tendermint", "Couldn't decode valid message: {}", e); // that pipeline is correct. This doesn't panic as a hedge
continue; error!(target: "tendermint", "Couldn't decode valid message: {}", e);
} continue;
}) }
.await }
.unwrap() ).await.unwrap()
} else { } else {
break; break;
} }