@@ -500,14 +500,13 @@ impl Actor for SenderAccount {
500500 let _indexer_allocations_handle = watch_pipe ( indexer_allocations, move |allocation_ids| {
501501 let myself = myself_clone. clone ( ) ;
502502 let allocation_ids = allocation_ids. clone ( ) ;
503- async move {
504- // Update the allocation_ids
505- myself
506- . cast ( SenderAccountMessage :: UpdateAllocationIds ( allocation_ids) )
507- . unwrap_or_else ( |e| {
508- error ! ( "Error while updating allocation_ids: {:?}" , e) ;
509- } ) ;
510- }
503+ // Update the allocation_ids
504+ myself
505+ . cast ( SenderAccountMessage :: UpdateAllocationIds ( allocation_ids) )
506+ . unwrap_or_else ( |e| {
507+ error ! ( "Error while updating allocation_ids: {:?}" , e) ;
508+ } ) ;
509+ async { }
511510 } ) ;
512511
513512 let myself_clone = myself. clone ( ) ;
@@ -516,13 +515,12 @@ impl Actor for SenderAccount {
516515 let _escrow_account_monitor = watch_pipe ( accounts_clone, move |escrow_account| {
517516 let myself = myself_clone. clone ( ) ;
518517 let pgpool = pgpool_clone. clone ( ) ;
519- let escrow_account = escrow_account. clone ( ) ;
518+ // Get balance or default value for sender
519+ // this balance already takes into account thawing
520+ let balance = escrow_account
521+ . get_balance_for_sender ( & sender_id)
522+ . unwrap_or_default ( ) ;
520523 async move {
521- // Get balance or default value for sender
522- // this balance already takes into account thawing
523- let balance = escrow_account
524- . get_balance_for_sender ( & sender_id)
525- . unwrap_or_default ( ) ;
526524 let last_non_final_ravs = sqlx:: query!(
527525 r#"
528526 SELECT allocation_id, value_aggregate
0 commit comments