Skip to content

Commit fb8caeb

Browse files
committed
utils/pollable_channel: Fix incorrect order of msgs when recieved
We were using VecDeque::pop instead of ::pop_front like inteded, oops. Signed-off-by: Matej Hrica <[email protected]>
1 parent 0cc7607 commit fb8caeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/src/pollable_channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl<T: Send> PollableChannelReciever<T> {
5353
Err(e) => return Err(e),
5454
}
5555

56-
Ok(data_lock.pop_back())
56+
Ok(data_lock.pop_front())
5757
}
5858

5959
pub fn len(&self) -> usize {

0 commit comments

Comments
 (0)