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(
match SignedMessage::decode(&mut msg.message.as_ref()) {
Ok(msg) => msg, Ok(msg) => msg,
Err(e) => { Err(e) => {
// This is guaranteed to be valid thanks to to the gossip validator, assuming // This is guaranteed to be valid thanks to to the gossip validator, assuming
// that pipeline is correct. That's why this doesn't panic // that pipeline is correct. This doesn't panic as a hedge
error!(target: "tendermint", "Couldn't decode valid message: {}", e); error!(target: "tendermint", "Couldn't decode valid message: {}", e);
continue; continue;
} }
}) }
.await ).await.unwrap()
.unwrap()
} else { } else {
break; break;
} }