Skip to content

Commit

Permalink
Log next inside OrderedSender
Browse files Browse the repository at this point in the history
  • Loading branch information
akoshelev committed Dec 6, 2023
1 parent 66a7d0f commit 0d3a74c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ipa-core/src/helpers/buffers/ordering_sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,9 @@ impl OrderingSender {
let mut b = self.state.lock().unwrap();

if let Poll::Ready(v) = b.take(cx) {
self.waiting.wake(self.next.load(Acquire));
tracing::trace!("Sending next {} bytes. stream closed = {}", v.len(), b.closed);
let next = self.next.load(Acquire);
self.waiting.wake(next);
tracing::trace!("Sending next {} bytes. next = {}. stream closed = {}", v.len(), next, b.closed);
Poll::Ready(Some(v))
} else if b.closed {
Poll::Ready(None)
Expand Down

0 comments on commit 0d3a74c

Please sign in to comment.