@@ -19,10 +19,11 @@ use tlsn_deap::Deap;
1919use tokio:: sync:: Mutex ;
2020use tracing:: { Span , debug, instrument, trace, warn} ;
2121
22- pub ( crate ) type MpcFuture = Box < dyn Future < Output = Result < ( Context , TlsTranscript ) , ProverError > > > ;
22+ pub ( crate ) type MpcFuture =
23+ Box < dyn Future < Output = Result < ( Context , TlsTranscript ) , ProverError > > + Send > ;
2324
2425type FinalizeFuture =
25- Box < dyn Future < Output = Result < ( InnerState , Context , TlsTranscript ) , ProverError > > > ;
26+ Box < dyn Future < Output = Result < ( InnerState , Context , TlsTranscript ) , ProverError > > + Send > ;
2627
2728pub ( crate ) struct MpcTlsClient {
2829 state : State ,
@@ -40,20 +41,20 @@ enum State {
4041 } ,
4142 Busy {
4243 mpc : Pin < MpcFuture > ,
43- fut : Pin < Box < dyn Future < Output = Result < Box < InnerState > , ProverError > > > > ,
44+ fut : Pin < Box < dyn Future < Output = Result < Box < InnerState > , ProverError > > + Send > > ,
4445 } ,
4546 ClientClose {
4647 mpc : Pin < MpcFuture > ,
47- fut : Pin < Box < dyn Future < Output = Result < Box < InnerState > , ProverError > > > > ,
48+ fut : Pin < Box < dyn Future < Output = Result < Box < InnerState > , ProverError > > + Send > > ,
4849 } ,
4950 ServerClose {
5051 mpc : Pin < MpcFuture > ,
51- fut : Pin < Box < dyn Future < Output = Result < Box < InnerState > , ProverError > > > > ,
52+ fut : Pin < Box < dyn Future < Output = Result < Box < InnerState > , ProverError > > + Send > > ,
5253 } ,
5354 Closing {
5455 ctx : Context ,
5556 transcript : Box < TlsTranscript > ,
56- fut : Pin < Box < dyn Future < Output = Result < Box < InnerState > , ProverError > > > > ,
57+ fut : Pin < Box < dyn Future < Output = Result < Box < InnerState > , ProverError > > + Send > > ,
5758 } ,
5859 Finalizing {
5960 fut : Pin < FinalizeFuture > ,
0 commit comments