@@ -18,6 +18,7 @@ use indexer_query::{
1818} ;
1919use indexer_watcher:: watch_pipe;
2020use prometheus:: { register_gauge_vec, register_int_gauge_vec, GaugeVec , IntGaugeVec } ;
21+ #[ cfg( any( test, feature = "test" ) ) ]
2122use ractor:: { Actor , ActorProcessingErr , ActorRef , MessagingErr , SupervisionEvent } ;
2223use reqwest:: Url ;
2324use sqlx:: PgPool ;
@@ -327,6 +328,7 @@ impl PartialEq for SenderAccountMessage {
327328#[ cfg( any( test, feature = "test" ) ) ]
328329impl Eq for SenderAccountMessage { }
329330
331+ #[ cfg( any( test, feature = "test" ) ) ]
330332/// A SenderAccount manages the receipts accounting between the indexer and the sender across
331333/// multiple allocations.
332334///
@@ -338,6 +340,7 @@ impl Eq for SenderAccountMessage {}
338340/// - Requesting the last RAV from the sender's TAP aggregator for all EOL allocations.
339341pub struct SenderAccount ;
340342
343+ #[ cfg( any( test, feature = "test" ) ) ]
341344/// Arguments received in startup while spawing [SenderAccount] actor
342345pub struct SenderAccountArgs {
343346 /// Configuration derived from config.toml
@@ -371,6 +374,7 @@ pub struct SenderAccountArgs {
371374 pub sender_type : SenderType ,
372375}
373376
377+ #[ cfg( any( test, feature = "test" ) ) ]
374378/// State used by the actor
375379///
376380/// This is a separate instance that makes it easier to have mutable
@@ -845,6 +849,7 @@ impl State {
845849 }
846850}
847851
852+ #[ cfg( any( test, feature = "test" ) ) ]
848853/// Actor implementation for [SenderAccount]
849854#[ async_trait:: async_trait]
850855impl Actor for SenderAccount {
0 commit comments