@@ -142,7 +142,7 @@ impl Actor for SenderAccountsManager {
142142 } ;
143143 let sender_allocation = select ! {
144144 sender_allocation = state. get_pending_sender_allocation_id( ) => sender_allocation,
145- _ = tokio:: time:: sleep( std :: time :: Duration :: from_secs ( 30 ) ) => {
145+ _ = tokio:: time:: sleep( state . config . tap_sender_timeout ) => {
146146 panic!( "Timeout while getting pending sender allocation ids" ) ;
147147 }
148148 } ;
@@ -252,7 +252,7 @@ impl Actor for SenderAccountsManager {
252252
253253 let mut sender_allocation = select ! {
254254 sender_allocation = state. get_pending_sender_allocation_id( ) => sender_allocation,
255- _ = tokio:: time:: sleep( std :: time :: Duration :: from_secs ( 30 ) ) => {
255+ _ = tokio:: time:: sleep( state . config . tap_sender_timeout ) => {
256256 tracing:: error!( "Timeout while getting pending sender allocation ids" ) ;
257257 return Ok ( ( ) ) ;
258258 }
@@ -643,7 +643,7 @@ mod tests {
643643 rav_request_receipt_limit : 1000 ,
644644 indexer_address : INDEXER . 1 ,
645645 escrow_polling_interval : Duration :: default ( ) ,
646- tap_sender_timeout : Duration :: default ( ) ,
646+ tap_sender_timeout : Duration :: from_secs ( 30 ) ,
647647 } ) )
648648 }
649649
@@ -969,4 +969,3 @@ mod tests {
969969 join_handle. await . unwrap ( ) ;
970970 }
971971}
972-
0 commit comments