@@ -181,30 +181,30 @@ pub struct Config {
181
181
pub handle_price_account_update_worker_poll_size : usize ,
182
182
/// Channel size used to wait for the handle_price_account_update
183
183
#[ serde( default = "default_handle_price_account_update_channel_size" ) ]
184
- pub handle_price_account_update_channel_size : usize ,
184
+ pub handle_price_account_update_channel_size : usize ,
185
185
/// Minimum time for a subscriber to run
186
186
#[ serde( default = "default_subscriber_finished_min_time" ) ]
187
- pub subscriber_finished_min_time : Duration ,
187
+ pub subscriber_finished_min_time : Duration ,
188
188
/// Time to sleep if the subscriber do not run for more than the minimum time
189
189
#[ serde( default = "default_subscriber_finished_sleep_time" ) ]
190
- pub subscriber_finished_sleep_time : Duration ,
190
+ pub subscriber_finished_sleep_time : Duration ,
191
191
}
192
192
193
193
impl Default for Config {
194
194
fn default ( ) -> Self {
195
195
Self {
196
- commitment : CommitmentLevel :: Confirmed ,
197
- poll_interval_duration : Duration :: from_secs ( 5 ) ,
198
- subscriber_enabled : true ,
199
- updates_channel_capacity : 10000 ,
200
- data_channel_capacity : 10000 ,
201
- max_lookup_batch_size : 100 ,
196
+ commitment : CommitmentLevel :: Confirmed ,
197
+ poll_interval_duration : Duration :: from_secs ( 5 ) ,
198
+ subscriber_enabled : true ,
199
+ updates_channel_capacity : 10000 ,
200
+ data_channel_capacity : 10000 ,
201
+ max_lookup_batch_size : 100 ,
202
202
handle_price_account_update_worker_poll_size :
203
203
default_handle_price_account_update_worker_poll_size ( ) ,
204
204
handle_price_account_update_channel_size :
205
205
default_handle_price_account_update_channel_size ( ) ,
206
- subscriber_finished_min_time : default_subscriber_finished_min_time ( ) ,
207
- subscriber_finished_sleep_time : default_subscriber_finished_sleep_time ( ) ,
206
+ subscriber_finished_min_time : default_subscriber_finished_min_time ( ) ,
207
+ subscriber_finished_sleep_time : default_subscriber_finished_sleep_time ( ) ,
208
208
}
209
209
}
210
210
}
0 commit comments