@@ -105,7 +105,7 @@ pub struct SenderAllocationState {
105105 domain_separator : Eip712Domain ,
106106 sender_account_ref : ActorRef < SenderAccountMessage > ,
107107
108- http_client : jsonrpsee:: http_client:: HttpClient ,
108+ sender_aggregator : jsonrpsee:: http_client:: HttpClient ,
109109}
110110
111111pub struct SenderAllocationArgs {
@@ -118,7 +118,7 @@ pub struct SenderAllocationArgs {
118118 pub escrow_adapter : EscrowAdapter ,
119119 pub domain_separator : Eip712Domain ,
120120 pub sender_account_ref : ActorRef < SenderAccountMessage > ,
121- pub http_client : jsonrpsee:: http_client:: HttpClient ,
121+ pub sender_aggregator : jsonrpsee:: http_client:: HttpClient ,
122122}
123123
124124#[ derive( Debug ) ]
@@ -291,7 +291,7 @@ impl SenderAllocationState {
291291 escrow_adapter,
292292 domain_separator,
293293 sender_account_ref,
294- http_client ,
294+ sender_aggregator ,
295295 } : SenderAllocationArgs ,
296296 ) -> anyhow:: Result < Self > {
297297 let required_checks: Vec < Arc < dyn Check + Send + Sync > > = vec ! [
@@ -332,7 +332,7 @@ impl SenderAllocationState {
332332 unaggregated_fees : UnaggregatedReceipts :: default ( ) ,
333333 invalid_receipts_fees : UnaggregatedReceipts :: default ( ) ,
334334 latest_rav,
335- http_client ,
335+ sender_aggregator ,
336336 } )
337337 }
338338
@@ -510,7 +510,7 @@ impl SenderAllocationState {
510510 . collect ( ) ;
511511 let rav_response_time_start = Instant :: now ( ) ;
512512 let response: JsonRpcResponse < EIP712SignedMessage < ReceiptAggregateVoucher > > = self
513- . http_client
513+ . sender_aggregator
514514 . request (
515515 "aggregate_receipts" ,
516516 rpc_params ! (
@@ -915,7 +915,7 @@ pub mod tests {
915915 None => create_mock_sender_account ( ) . await . 1 ,
916916 } ;
917917
918- let http_client = HttpClientBuilder :: default ( )
918+ let sender_aggregator = HttpClientBuilder :: default ( )
919919 . build ( & sender_aggregator_endpoint)
920920 . unwrap ( ) ;
921921 SenderAllocationArgs {
@@ -928,7 +928,7 @@ pub mod tests {
928928 escrow_adapter,
929929 domain_separator : TAP_EIP712_DOMAIN_SEPARATOR . clone ( ) ,
930930 sender_account_ref,
931- http_client ,
931+ sender_aggregator ,
932932 }
933933 }
934934
0 commit comments