Correct justication import pipeline

Removes JustificationImport as it should never be used.
This commit is contained in:
Luke Parker
2022-10-22 06:24:39 -04:00
parent 4206ed3b18
commit dee6993ac8
4 changed files with 13 additions and 81 deletions

View File

@@ -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())
}