Skip to content

Commit

Permalink
Merge pull request #1538 from eclipse-zenoh/fix/backoff
Browse files Browse the repository at this point in the history
Fix backoff priority
  • Loading branch information
Mallets authored Oct 16, 2024
2 parents 1d21418 + d0b72bb commit 363e817
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions io/zenoh-transport/src/common/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ impl StageOutIn {
#[inline]
fn try_pull(&mut self) -> Pull {
if let Some(batch) = self.s_out_r.pull() {
self.backoff.atomic.active.store(false, Ordering::Relaxed);
return Pull::Some(batch);
}

Expand Down Expand Up @@ -746,9 +747,8 @@ impl TransmissionPipelineConsumer {
return Some((batch, prio));
}
Pull::Backoff(deadline) => {
if deadline < backoff {
backoff = deadline;
}
backoff = deadline;
break;
}
Pull::None => {}
}
Expand Down

0 comments on commit 363e817

Please sign in to comment.