Allow tx pool to be Send (#9315)

This commit is contained in:
Arkadiy Paronyan 2018-08-09 23:13:28 +02:00 committed by Marek Kotewicz
parent 8814195122
commit 62fdfb937a
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
[package]
description = "Generic transaction pool."
name = "transaction-pool"
version = "1.12.1"
version = "1.12.2"
license = "GPL-3.0"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -111,7 +111,7 @@ pub trait VerifiedTransaction: fmt::Debug {
type Hash: fmt::Debug + fmt::LowerHex + Eq + Clone + Hash;
/// Transaction sender type.
type Sender: fmt::Debug + Eq + Clone + Hash;
type Sender: fmt::Debug + Eq + Clone + Hash + Send;
/// Transaction hash
fn hash(&self) -> &Self::Hash;

View File

@ -83,7 +83,7 @@ pub enum Change<T = ()> {
///
pub trait Scoring<T>: fmt::Debug {
/// A score of a transaction.
type Score: cmp::Ord + Clone + Default + fmt::Debug;
type Score: cmp::Ord + Clone + Default + fmt::Debug + Send;
/// Custom scoring update event type.
type Event: fmt::Debug;