Remove the "expected" next ID

It's an unnecessary extra layer better handled locally.
This commit is contained in:
Luke Parker
2023-09-27 11:10:12 -04:00
parent 90318d7214
commit 269db1c4be
6 changed files with 12 additions and 18 deletions

View File

@@ -28,8 +28,7 @@ impl Processors for Arc<MessageQueue> {
self.queue(metadata, msg.into_bytes()).await;
}
async fn recv(&mut self) -> Message {
// TODO: Use a proper expected next ID
let msg = self.next(0).await;
let msg = self.next().await;
let network = match msg.from {
Service::Processor(network) => network,