Skip to content

Commit

Permalink
chore(spec): bail out of long running function if stream returns none
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfourzerofour committed Oct 8, 2023
1 parent 0835dc1 commit e404ebc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/builder/src/bundle_sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ where
if let Some(r) = self.send_bundle_receiver.recv().await {
send_bundle_response = Some(r.responder);
} else {
continue;
error!("Bundle stream closed in manual mode");
bail!("Bundle stream closed in manual mode");
}
} else {
// Wait for new block. Block number doesn't matter as the pool will only notify of new blocks
Expand Down

0 comments on commit e404ebc

Please sign in to comment.