Skip to content

Commit

Permalink
bugfix: deadlock with channel usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed Apr 26, 2024
1 parent ec8b827 commit f071d56
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion mev-build-rs/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,16 @@ impl<
loop {
tokio::select! {
Some(message) = self.msgs.recv() => self.dispatch(message).await,
Some(Ok(Events::Attributes(attributes))) = payload_events.next() => self.on_payload_attributes(attributes).await,
Some(event) = payload_events.next() => match event {
Ok(event) => {
if let Events::Attributes(attributes) = event {
self.on_payload_attributes(attributes).await;
}
}
Err(err) => {
warn!(%err, "error getting payload events");
}
}
}
}
}
Expand Down

0 comments on commit f071d56

Please sign in to comment.