mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-22 08:01:06 +00:00
Fix warnings. (#4768)
This commit is contained in:
@@ -90,7 +90,9 @@ where
|
|||||||
|
|
||||||
let _ = exit_send.send(());
|
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 {
|
match service_res {
|
||||||
Either::Left((res, _)) => res.map_err(error::Error::Service),
|
Either::Left((res, _)) => res.map_err(error::Error::Service),
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ use sc_executor::native_executor_instance;
|
|||||||
pub use sc_executor::NativeExecutor;
|
pub use sc_executor::NativeExecutor;
|
||||||
use sp_consensus_aura::sr25519::{AuthorityPair as AuraPair};
|
use sp_consensus_aura::sr25519::{AuthorityPair as AuraPair};
|
||||||
use grandpa::{self, FinalityProofProvider as GrandpaFinalityProofProvider};
|
use grandpa::{self, FinalityProofProvider as GrandpaFinalityProofProvider};
|
||||||
use futures::{FutureExt, compat::Future01CompatExt};
|
|
||||||
|
|
||||||
// Our native executor instance.
|
// Our native executor instance.
|
||||||
native_executor_instance!(
|
native_executor_instance!(
|
||||||
|
|||||||
@@ -200,7 +200,9 @@ where
|
|||||||
|
|
||||||
let _ = exit_send.send(());
|
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 {
|
match service_res {
|
||||||
Either::Left((res, _)) => res.map_err(error::Error::Service),
|
Either::Left((res, _)) => res.map_err(error::Error::Service),
|
||||||
|
|||||||
@@ -171,15 +171,6 @@ type CommunicationInH<Block, H> = finality_grandpa::voter::CommunicationIn<
|
|||||||
AuthorityId,
|
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
|
/// 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
|
/// from the block, useful for forcing the hash to some type (e.g. `H256`) when
|
||||||
/// the compiler can't do the inference.
|
/// the compiler can't do the inference.
|
||||||
|
|||||||
@@ -392,7 +392,7 @@ impl TransactionPool<Hash, Block> for EmptyTransactionPool {
|
|||||||
|
|
||||||
fn on_broadcasted(&self, _: HashMap<Hash, Vec<String>>) {}
|
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 {
|
pub trait SpecializationFactory {
|
||||||
|
|||||||
Reference in New Issue
Block a user