Skip to content

Commit 678db95

Browse files
committed
chore(agent): remove ractor from prod code paths
1 parent a59922b commit 678db95

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use indexer_allocation::Allocation;
1515
use indexer_monitor::{EscrowAccounts, SubgraphClient};
1616
use indexer_watcher::{map_watcher, watch_pipe};
1717
use prometheus::{register_counter_vec, CounterVec};
18+
#[cfg(any(test, feature = "test"))]
1819
use ractor::{Actor, ActorCell, ActorProcessingErr, ActorRef, SupervisionEvent};
1920
use reqwest::Url;
2021
use serde::Deserialize;
@@ -144,6 +145,7 @@ impl NewReceiptNotification {
144145
}
145146
}
146147

148+
#[cfg(any(test, feature = "test"))]
147149
/// Manager Actor
148150
#[derive(Debug, Clone)]
149151
pub struct SenderAccountsManager;
@@ -223,6 +225,7 @@ pub enum SenderAccountsManagerMessage {
223225
UpdateSenderAccountsV2(HashSet<Address>),
224226
}
225227

228+
#[cfg(any(test, feature = "test"))]
226229
/// Arguments received in startup while spawing [SenderAccount] actor
227230
pub struct SenderAccountsManagerArgs {
228231
/// Config forwarded to [SenderAccount]

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use bigdecimal::{num_bigint::BigInt, ToPrimitive};
1313
use indexer_monitor::{EscrowAccounts, SubgraphClient};
1414
use itertools::{Either, Itertools};
1515
use prometheus::{register_counter_vec, register_histogram_vec, CounterVec, HistogramVec};
16+
#[cfg(any(test, feature = "test"))]
1617
use ractor::{Actor, ActorProcessingErr, ActorRef};
1718
use sqlx::{types::BigDecimal, PgPool};
1819
use tap_core::{

0 commit comments

Comments
 (0)