From a57400c281f85bd8b88346b35da21ab4b4c1884a Mon Sep 17 00:00:00 2001 From: Tengfei Niu Date: Mon, 4 Nov 2019 16:07:31 +0800 Subject: [PATCH 1/2] remove unused import --- core/authority-discovery/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/authority-discovery/src/lib.rs b/core/authority-discovery/src/lib.rs index ce6445d08fb12..00f808dde0349 100644 --- a/core/authority-discovery/src/lib.rs +++ b/core/authority-discovery/src/lib.rs @@ -57,7 +57,7 @@ use futures::Future; use futures_timer::Interval; use authority_discovery_primitives::{AuthorityDiscoveryApi, AuthorityId, Signature}; -use client::{blockchain::HeaderBackend, runtime_api::StorageProof}; +use client::blockchain::HeaderBackend; use error::{Error, Result}; use log::{debug, error, log_enabled, warn}; use network::specialization::NetworkSpecialization; From 88f59e5e0ba1bfd460ed6409a357b80bc2304afd Mon Sep 17 00:00:00 2001 From: Tengfei Niu Date: Mon, 4 Nov 2019 17:41:39 +0800 Subject: [PATCH 2/2] fix test error --- core/authority-discovery/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/authority-discovery/src/lib.rs b/core/authority-discovery/src/lib.rs index 00f808dde0349..35237e251c895 100644 --- a/core/authority-discovery/src/lib.rs +++ b/core/authority-discovery/src/lib.rs @@ -404,7 +404,7 @@ fn hash_authority_id(id: &[u8]) -> Result { #[cfg(test)] mod tests { use super::*; - use client::runtime_api::{ApiExt, Core, RuntimeVersion}; + use client::runtime_api::{ApiExt, Core, RuntimeVersion, StorageProof}; use futures::channel::mpsc::channel; use futures::executor::block_on; use futures::future::poll_fn;