@@ -79,7 +79,7 @@ pub use substrate_network::PeerId;
79
79
const COLLATION_TIMEOUT : Duration = Duration :: from_secs ( 30 ) ;
80
80
81
81
/// An abstraction over the `Network` with useful functions for a `Collator`.
82
- pub trait Network {
82
+ pub trait Network : Send + Sync {
83
83
/// Convert the given `CollatorId` to a `PeerId`.
84
84
fn collator_id_to_peer_id ( & self , collator_id : CollatorId ) ->
85
85
Box < dyn Future < Item =Option < PeerId > , Error =( ) > + Send > ;
@@ -93,8 +93,8 @@ pub trait Network {
93
93
}
94
94
95
95
impl < P , E > Network for ValidationNetwork < P , E , NetworkService , TaskExecutor > where
96
- P : ' static ,
97
- E : ' static ,
96
+ P : ' static + Send + Sync ,
97
+ E : ' static + Send + Sync ,
98
98
{
99
99
fn collator_id_to_peer_id ( & self , collator_id : CollatorId ) ->
100
100
Box < dyn Future < Item =Option < PeerId > , Error =( ) > + Send >
@@ -438,7 +438,7 @@ pub fn run_collator<P, E, I, ArgT>(
438
438
P : BuildParachainContext + Send + ' static ,
439
439
P :: ParachainContext : Send + ' static ,
440
440
<<P :: ParachainContext as ParachainContext >:: ProduceCandidate as IntoFuture >:: Future : Send + ' static ,
441
- E : IntoFuture < Item =( ) , Error =( ) > ,
441
+ E : IntoFuture < Item =( ) , Error =( ) > ,
442
442
E :: Future : Send + Clone + Sync + ' static ,
443
443
I : IntoIterator < Item =ArgT > ,
444
444
ArgT : Into < std:: ffi:: OsString > + Clone ,
0 commit comments