@@ -73,8 +73,8 @@ pub async fn send_money<S, A>(
73
73
source_amount : u64 ,
74
74
) -> Result < ( StreamDelivery , S ) , Error >
75
75
where
76
- S : IncomingService < A > + Clone + ' static ,
77
- A : Account + ' static ,
76
+ S : IncomingService < A > + Send + Sync + Clone + ' static ,
77
+ A : Account + Send + Sync + ' static ,
78
78
{
79
79
let shared_secret = Bytes :: from ( shared_secret) ;
80
80
let from_account = from_account. clone ( ) ;
@@ -160,7 +160,7 @@ struct SendMoneyFuture<S: IncomingService<A>, A: Account> {
160
160
struct PendingRequest {
161
161
sequence : u64 ,
162
162
amount : u64 ,
163
- future : Pin < Box < dyn Future < Output = IlpResult > > > ,
163
+ future : Pin < Box < dyn Future < Output = IlpResult > + Send > > ,
164
164
}
165
165
166
166
/// The state of the send money future
@@ -178,8 +178,8 @@ enum SendMoneyFutureState {
178
178
#[ project]
179
179
impl < S , A > SendMoneyFuture < S , A >
180
180
where
181
- S : IncomingService < A > + Clone + ' static ,
182
- A : Account + ' static ,
181
+ S : IncomingService < A > + Send + Sync + Clone + ' static ,
182
+ A : Account + Send + Sync + ' static ,
183
183
{
184
184
/// Fire off requests until the congestion controller tells us to stop or we've sent the total amount or maximum time since last fulfill has elapsed
185
185
fn try_send_money ( & mut self ) -> Result < bool , Error > {
@@ -454,8 +454,8 @@ where
454
454
455
455
impl < S , A > Future for SendMoneyFuture < S , A >
456
456
where
457
- S : IncomingService < A > + Clone + ' static ,
458
- A : Account + ' static ,
457
+ S : IncomingService < A > + Send + Sync + Clone + ' static ,
458
+ A : Account + Send + Sync + ' static ,
459
459
{
460
460
type Output = Result < ( StreamDelivery , S ) , Error > ;
461
461
0 commit comments