mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Use dedicated Queues for each from-to pair
Prevents one Processor's message from halting the entire pipeline.
This commit is contained in:
@@ -25,7 +25,7 @@ impl Coordinator for MessageQueue {
|
||||
}
|
||||
|
||||
async fn recv(&mut self) -> Message {
|
||||
let msg = self.next().await;
|
||||
let msg = self.next(Service::Coordinator).await;
|
||||
|
||||
let id = msg.id;
|
||||
|
||||
@@ -37,6 +37,6 @@ impl Coordinator for MessageQueue {
|
||||
}
|
||||
|
||||
async fn ack(&mut self, msg: Message) {
|
||||
MessageQueue::ack(self, msg.id).await
|
||||
MessageQueue::ack(self, Service::Coordinator, msg.id).await
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user