Skip to content

Commit f03ccf4

Browse files
committed
fix: rust format, rustfmt
1 parent 6cfc854 commit f03ccf4

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

crates/tap-agent/src/agent/sender_account.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ pub mod tests {
11491149
rav_request_receipt_limit,
11501150
indexer_address: INDEXER.1,
11511151
escrow_polling_interval: Duration::default(),
1152-
tap_sender_timeout: Duration::default(),
1152+
tap_sender_timeout: Duration::from_secs(30),
11531153
}));
11541154

11551155
let network_subgraph = Box::leak(Box::new(
@@ -2061,4 +2061,3 @@ pub mod tests {
20612061
sender_account.stop_and_wait(None, None).await.unwrap();
20622062
}
20632063
}
2064-

crates/tap-agent/src/agent/sender_accounts_manager.rs

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

Comments
 (0)