Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Oct 29, 2024
1 parent 11b6eff commit a4d864d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions crates/protocol/src/execute_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,7 @@ where
let current_round = session.current_round();
let session_arc = Arc::new(session);

loop {
{
// let session = session_arc.read().unwrap();
if session_arc.can_finalize(&accum)? {
break;
}
}
while !session_arc.can_finalize(&accum)? {
tokio::select! {
// Incoming message from remote peer
maybe_message = rx.recv() => {
Expand Down

0 comments on commit a4d864d

Please sign in to comment.