fix(upstream): Use sync read for chunk dequeue (#239)
This commit is contained in:
parent
27d29ace30
commit
2f1270f8e8
2 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ where
|
|||
}
|
||||
|
||||
pub fn tick(&mut self) -> TickOutcome {
|
||||
match self.ingress.recv_timeout(Duration::from_millis(500)) {
|
||||
match self.ingress.recv_timeout(Duration::from_millis(1)) {
|
||||
Ok((id, payload)) => {
|
||||
let segment = Segment::new(self.clock, id, payload);
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ impl multiplexer::agents::Channel for ProtocolChannel {
|
|||
}
|
||||
|
||||
fn dequeue_chunk(&mut self) -> Result<multiplexer::Payload, multiplexer::agents::ChannelError> {
|
||||
match self.2.recv_or_idle() {
|
||||
match self.2.recv() {
|
||||
Ok(msg) => Ok(msg.payload),
|
||||
Err(error) => {
|
||||
error!(?error, "dequeue chunk failed");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue