Skip to content

Commit 97b5679

Browse files
committed
refactor: rename to sender_aggregator
Signed-off-by: Gustavo Inacio <[email protected]>
1 parent 3973ed2 commit 97b5679

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

tap-agent/src/agent/sender_account.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ pub struct State {
151151
domain_separator: Eip712Domain,
152152
config: &'static config::Config,
153153
pgpool: PgPool,
154-
http_client: jsonrpsee::http_client::HttpClient,
154+
sender_aggregator: jsonrpsee::http_client::HttpClient,
155155
}
156156

157157
impl State {
@@ -175,7 +175,7 @@ impl State {
175175
escrow_adapter: self.escrow_adapter.clone(),
176176
domain_separator: self.domain_separator.clone(),
177177
sender_account_ref: sender_account_ref.clone(),
178-
http_client: self.http_client.clone(),
178+
sender_aggregator: self.sender_aggregator.clone(),
179179
};
180180

181181
SenderAllocation::spawn_linked(
@@ -446,7 +446,7 @@ impl Actor for SenderAccount {
446446
.with_label_values(&[&sender_id.to_string()])
447447
.set(config.tap.rav_request_trigger_value as f64);
448448

449-
let http_client = HttpClientBuilder::default()
449+
let sender_aggregator = HttpClientBuilder::default()
450450
.request_timeout(Duration::from_secs(config.tap.rav_request_timeout_secs))
451451
.build(&sender_aggregator_endpoint)?;
452452

@@ -464,7 +464,7 @@ impl Actor for SenderAccount {
464464
escrow_subgraph,
465465
escrow_adapter,
466466
domain_separator,
467-
http_client,
467+
sender_aggregator,
468468
config,
469469
pgpool,
470470
sender: sender_id,

tap-agent/src/agent/sender_allocation.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

111111
pub 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

Comments
 (0)