From 06ec2669fe3b84bda5af9235a17f0e1f232a5579 Mon Sep 17 00:00:00 2001 From: Bob Liu Date: Fri, 27 Jul 2018 19:24:17 +0800 Subject: [PATCH] Chore: fix typo (#434) --- substrate/substrate/network/src/import_queue.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/substrate/substrate/network/src/import_queue.rs b/substrate/substrate/network/src/import_queue.rs index 78cf7c2a28..024ae62751 100644 --- a/substrate/substrate/network/src/import_queue.rs +++ b/substrate/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)) }