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