diff --git a/substrate/network/src/import_queue.rs b/substrate/network/src/import_queue.rs index 78cf7c2a28497..024ae627519d8 100644 --- a/substrate/network/src/import_queue.rs +++ b/substrate/network/src/import_queue.rs @@ -41,7 +41,7 @@ pub trait ImportQueue: Send + Sync { fn stop(&self); /// Get queue status. fn status(&self) -> ImportQueueStatus; - /// Is block with given hash is currently in the queue. + /// Is block with given hash currently in the queue. fn is_importing(&self, hash: &B::Hash) -> bool; /// Import bunch of blocks. fn import_blocks(&self, sync: &mut ChainSync, protocol: &mut Context, blocks: (BlockOrigin, Vec>)); @@ -390,7 +390,7 @@ impl<'a, B: 'static + BlockT, E: ExecuteInContext> SyncLinkApi for SyncLin fn block_imported(&mut self, hash: &B::Hash, number: NumberFor) { self.with_sync(|sync, _| sync.block_imported(&hash, number)) } - + fn maintain_sync(&mut self) { self.with_sync(|sync, protocol| sync.maintain_sync(protocol)) }