@@ -59,7 +59,6 @@ struct TaskState {
5959 /// Tracker for all non-redeemed RAVs
6060 rav_tracker : SimpleFeeTracker ,
6161 /// Tracker for all invalid receipts
62- #[ allow( dead_code) ]
6362 invalid_receipts_tracker : SimpleFeeTracker ,
6463 /// Set of current active allocations
6564 allocation_ids : HashSet < AllocationId > ,
@@ -68,29 +67,26 @@ struct TaskState {
6867 /// Current sender balance
6968 sender_balance : U256 ,
7069 /// Registry for managing child tasks
71- #[ allow( dead_code) ]
7270 child_registry : TaskRegistry ,
7371 /// Lifecycle manager for child tasks
74- #[ allow( dead_code) ]
7572 lifecycle : Arc < LifecycleManager > ,
7673 /// Configuration
77- #[ allow ( dead_code ) ]
74+ #[ cfg ( not ( any ( test , feature = "test" ) ) ) ]
7875 config : & ' static SenderAccountConfig ,
7976 /// Handle to send messages back to this task's main loop
8077 #[ cfg( not( any( test, feature = "test" ) ) ) ]
8178 parent_tx : mpsc:: Sender < SenderAccountMessage > ,
8279 /// Other required fields for spawning child tasks
83- #[ allow( dead_code) ]
8480 pgpool : sqlx:: PgPool ,
85- #[ allow ( dead_code ) ]
81+ #[ cfg ( not ( any ( test , feature = "test" ) ) ) ]
8682 escrow_accounts : Receiver < EscrowAccounts > ,
87- #[ allow ( dead_code ) ]
83+ #[ cfg ( not ( any ( test , feature = "test" ) ) ) ]
8884 escrow_subgraph : & ' static SubgraphClient ,
89- #[ allow ( dead_code ) ]
85+ #[ cfg ( not ( any ( test , feature = "test" ) ) ) ]
9086 network_subgraph : & ' static SubgraphClient ,
91- #[ allow ( dead_code ) ]
87+ #[ cfg ( not ( any ( test , feature = "test" ) ) ) ]
9288 domain_separator : Eip712Domain ,
93- #[ allow ( dead_code ) ]
89+ #[ cfg ( not ( any ( test , feature = "test" ) ) ) ]
9490 sender_aggregator_endpoint : reqwest:: Url ,
9591}
9692
@@ -103,11 +99,11 @@ impl SenderAccountTask {
10399 sender : Address ,
104100 config : & ' static SenderAccountConfig ,
105101 pgpool : sqlx:: PgPool ,
106- escrow_accounts : Receiver < EscrowAccounts > ,
107- escrow_subgraph : & ' static SubgraphClient ,
108- network_subgraph : & ' static SubgraphClient ,
109- domain_separator : Eip712Domain ,
110- sender_aggregator_endpoint : reqwest:: Url ,
102+ _escrow_accounts : Receiver < EscrowAccounts > ,
103+ _escrow_subgraph : & ' static SubgraphClient ,
104+ _network_subgraph : & ' static SubgraphClient ,
105+ _domain_separator : Eip712Domain ,
106+ _sender_aggregator_endpoint : reqwest:: Url ,
111107 prefix : Option < String > ,
112108 ) -> Result < TaskHandle < SenderAccountMessage > > {
113109 // Create a separate channel for parent-child communication
@@ -128,13 +124,7 @@ impl SenderAccountTask {
128124 sender_balance : U256 :: ZERO ,
129125 child_registry : TaskRegistry :: new ( ) ,
130126 lifecycle : Arc :: new ( lifecycle. clone ( ) ) ,
131- config,
132127 pgpool,
133- escrow_accounts,
134- escrow_subgraph,
135- network_subgraph,
136- domain_separator,
137- sender_aggregator_endpoint,
138128 } ;
139129
140130 #[ cfg( not( any( test, feature = "test" ) ) ) ]
0 commit comments