Switch to bounded mpsc for txpool import notification stream (#6640)

* Switch to bounded mpsc for txpool import notification stream

* Update client/transaction-pool/graph/src/validated_pool.rs

Co-authored-by: Nikolay Volf <nikvolf@gmail.com>

Co-authored-by: Nikolay Volf <nikvolf@gmail.com>
This commit is contained in:
Wei Tang
2020-07-17 12:31:47 +02:00
committed by GitHub
parent 85e1f9aa8d
commit 8ae1aa4c28
6 changed files with 30 additions and 11 deletions
@@ -33,13 +33,13 @@ use sp_runtime::{
};
use sp_transaction_pool::error;
use wasm_timer::Instant;
use sp_utils::mpsc::TracingUnboundedReceiver;
use futures::channel::mpsc::Receiver;
use crate::validated_pool::ValidatedPool;
pub use crate::validated_pool::ValidatedTransaction;
/// Modification notification event stream type;
pub type EventStream<H> = TracingUnboundedReceiver<H>;
pub type EventStream<H> = Receiver<H>;
/// Block hash type for a pool.
pub type BlockHash<A> = <<A as ChainApi>::Block as traits::Block>::Hash;