@@ -59,7 +59,6 @@ struct TaskState {
59
59
/// Tracker for all non-redeemed RAVs
60
60
rav_tracker : SimpleFeeTracker ,
61
61
/// Tracker for all invalid receipts
62
- #[ allow( dead_code) ]
63
62
invalid_receipts_tracker : SimpleFeeTracker ,
64
63
/// Set of current active allocations
65
64
allocation_ids : HashSet < AllocationId > ,
@@ -68,29 +67,26 @@ struct TaskState {
68
67
/// Current sender balance
69
68
sender_balance : U256 ,
70
69
/// Registry for managing child tasks
71
- #[ allow( dead_code) ]
72
70
child_registry : TaskRegistry ,
73
71
/// Lifecycle manager for child tasks
74
- #[ allow( dead_code) ]
75
72
lifecycle : Arc < LifecycleManager > ,
76
73
/// Configuration
77
- #[ allow ( dead_code ) ]
74
+ #[ cfg ( not ( any ( test , feature = "test" ) ) ) ]
78
75
config : & ' static SenderAccountConfig ,
79
76
/// Handle to send messages back to this task's main loop
80
77
#[ cfg( not( any( test, feature = "test" ) ) ) ]
81
78
parent_tx : mpsc:: Sender < SenderAccountMessage > ,
82
79
/// Other required fields for spawning child tasks
83
- #[ allow( dead_code) ]
84
80
pgpool : sqlx:: PgPool ,
85
- #[ allow ( dead_code ) ]
81
+ #[ cfg ( not ( any ( test , feature = "test" ) ) ) ]
86
82
escrow_accounts : Receiver < EscrowAccounts > ,
87
- #[ allow ( dead_code ) ]
83
+ #[ cfg ( not ( any ( test , feature = "test" ) ) ) ]
88
84
escrow_subgraph : & ' static SubgraphClient ,
89
- #[ allow ( dead_code ) ]
85
+ #[ cfg ( not ( any ( test , feature = "test" ) ) ) ]
90
86
network_subgraph : & ' static SubgraphClient ,
91
- #[ allow ( dead_code ) ]
87
+ #[ cfg ( not ( any ( test , feature = "test" ) ) ) ]
92
88
domain_separator : Eip712Domain ,
93
- #[ allow ( dead_code ) ]
89
+ #[ cfg ( not ( any ( test , feature = "test" ) ) ) ]
94
90
sender_aggregator_endpoint : reqwest:: Url ,
95
91
}
96
92
@@ -103,11 +99,11 @@ impl SenderAccountTask {
103
99
sender : Address ,
104
100
config : & ' static SenderAccountConfig ,
105
101
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 ,
111
107
prefix : Option < String > ,
112
108
) -> Result < TaskHandle < SenderAccountMessage > > {
113
109
// Create a separate channel for parent-child communication
@@ -128,13 +124,7 @@ impl SenderAccountTask {
128
124
sender_balance : U256 :: ZERO ,
129
125
child_registry : TaskRegistry :: new ( ) ,
130
126
lifecycle : Arc :: new ( lifecycle. clone ( ) ) ,
131
- config,
132
127
pgpool,
133
- escrow_accounts,
134
- escrow_subgraph,
135
- network_subgraph,
136
- domain_separator,
137
- sender_aggregator_endpoint,
138
128
} ;
139
129
140
130
#[ cfg( not( any( test, feature = "test" ) ) ) ]
0 commit comments