mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-10 05:09:22 +00:00
Correct justication import pipeline
Removes JustificationImport as it should never be used.
This commit is contained in:
@@ -109,9 +109,10 @@ where
|
||||
};
|
||||
|
||||
let boxed = Box::new(import.clone());
|
||||
// Use None for the justification importer since justifications always come with blocks
|
||||
// Therefore, they're never imported after the fact, mandating a importer
|
||||
let queue = || BasicQueue::new(import.clone(), boxed.clone(), None, spawner, registry);
|
||||
|
||||
let queue =
|
||||
|| BasicQueue::new(import.clone(), boxed.clone(), Some(boxed.clone()), spawner, registry);
|
||||
*futures::executor::block_on(import.queue.write()) = Some(queue());
|
||||
(authority, queue())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user