fix(upstream): Use sync read for chunk dequeue (#239)
This commit is contained in:
parent
70355a687d
commit
66a095df4a
2 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn tick(&mut self) -> TickOutcome {
|
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)) => {
|
Ok((id, payload)) => {
|
||||||
let segment = Segment::new(self.clock, 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> {
|
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),
|
Ok(msg) => Ok(msg.payload),
|
||||||
Err(error) => {
|
Err(error) => {
|
||||||
error!(?error, "dequeue chunk failed");
|
error!(?error, "dequeue chunk failed");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue