Skip to content

Commit

Permalink
correct collect error
Browse files Browse the repository at this point in the history
  • Loading branch information
wenym1 committed Nov 22, 2024
1 parent a7d6fc2 commit e84eb89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/meta/src/barrier/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ impl ControlStreamManager {
let mut errors = vec![(worker_id, first_err)];
#[cfg(not(madsim))]
{
if !self.nodes.is_empty() {
{
let _ = timeout(COLLECT_ERROR_TIMEOUT, async {
loop {
while !self.nodes.is_empty() {
let (worker_id, result) = self.next_response().await;
if let Err(e) = result {
errors.push((worker_id, e));
Expand Down

0 comments on commit e84eb89

Please sign in to comment.