Fix warnings. (#4768)

This commit is contained in:
Tomasz Drwięga
2020-01-29 21:37:26 +01:00
committed by GitHub
parent 504b4e89e8
commit fd03f4e950
5 changed files with 7 additions and 13 deletions
+3 -1
View File
@@ -90,7 +90,9 @@ where
let _ = exit_send.send(());
runtime.block_on(handle);
if let Err(e) = runtime.block_on(handle) {
log::error!("Error running node: {:?}", e);
}
match service_res {
Either::Left((res, _)) => res.map_err(error::Error::Service),
@@ -11,7 +11,6 @@ use sc_executor::native_executor_instance;
pub use sc_executor::NativeExecutor;
use sp_consensus_aura::sr25519::{AuthorityPair as AuraPair};
use grandpa::{self, FinalityProofProvider as GrandpaFinalityProofProvider};
use futures::{FutureExt, compat::Future01CompatExt};
// Our native executor instance.
native_executor_instance!(
+3 -1
View File
@@ -200,7 +200,9 @@ where
let _ = exit_send.send(());
runtime.block_on(handle);
if let Err(e) = runtime.block_on(handle) {
log::error!("Error running node: {:?}", e);
}
match service_res {
Either::Left((res, _)) => res.map_err(error::Error::Service),
@@ -171,15 +171,6 @@ type CommunicationInH<Block, H> = finality_grandpa::voter::CommunicationIn<
AuthorityId,
>;
/// A global communication sink for commits. Not exposed publicly, used
/// internally to simplify types in the communication layer.
type CommunicationOut<Block> = finality_grandpa::voter::CommunicationOut<
<Block as BlockT>::Hash,
NumberFor<Block>,
AuthoritySignature,
AuthorityId,
>;
/// Global communication sink for commits with the hash type not being derived
/// from the block, useful for forcing the hash to some type (e.g. `H256`) when
/// the compiler can't do the inference.
+1 -1
View File
@@ -392,7 +392,7 @@ impl TransactionPool<Hash, Block> for EmptyTransactionPool {
fn on_broadcasted(&self, _: HashMap<Hash, Vec<String>>) {}
fn transaction(&self, h: &Hash) -> Option<Extrinsic> { None }
fn transaction(&self, _h: &Hash) -> Option<Extrinsic> { None }
}
pub trait SpecializationFactory {