Skip to content

Commit

Permalink
fix(upstream): Use sync read for chunk dequeue
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega committed Mar 24, 2023
1 parent 27d29ac commit 0b25c3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pallas-multiplexer/src/mux.rs
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion pallas-upstream/src/framework.rs
Expand Up @@ -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");
Expand Down

0 comments on commit 0b25c3c

Please sign in to comment.