mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 04:09:23 +00:00
Remove the "expected" next ID
It's an unnecessary extra layer better handled locally.
This commit is contained in:
@@ -25,8 +25,7 @@ impl Coordinator for MessageQueue {
|
||||
}
|
||||
|
||||
async fn recv(&mut self) -> Message {
|
||||
// TODO2: Use a proper expected next ID
|
||||
let msg = self.next(0).await;
|
||||
let msg = self.next().await;
|
||||
|
||||
let id = msg.id;
|
||||
|
||||
|
||||
@@ -471,6 +471,7 @@ async fn run<N: Network, D: Db, Co: Coordinator>(mut raw_db: D, network: N, mut
|
||||
let (main_db, mut tributary_mutable, mut substrate_mutable) = boot(&mut raw_db, &network).await;
|
||||
|
||||
// We can't load this from the DB as we can't guarantee atomic increments with the ack function
|
||||
// TODO: Load with a slight tolerance
|
||||
let mut last_coordinator_msg = None;
|
||||
|
||||
loop {
|
||||
|
||||
Reference in New Issue
Block a user