Skip to content

Commit ff9eeba

Browse files
committed
Format
1 parent 927ae6c commit ff9eeba

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

src/agent/services/oracle.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ use {
1313
},
1414
state::oracle::Oracle,
1515
},
16-
anyhow::{Context, Result},
16+
anyhow::{
17+
Context,
18+
Result,
19+
},
1720
solana_account_decoder::UiAccountEncoding,
1821
solana_client::{
1922
nonblocking::{

src/agent/state/oracle.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -181,30 +181,30 @@ pub struct Config {
181181
pub handle_price_account_update_worker_poll_size: usize,
182182
/// Channel size used to wait for the handle_price_account_update
183183
#[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,
185185
/// Minimum time for a subscriber to run
186186
#[serde(default = "default_subscriber_finished_min_time")]
187-
pub subscriber_finished_min_time: Duration,
187+
pub subscriber_finished_min_time: Duration,
188188
/// Time to sleep if the subscriber do not run for more than the minimum time
189189
#[serde(default = "default_subscriber_finished_sleep_time")]
190-
pub subscriber_finished_sleep_time: Duration,
190+
pub subscriber_finished_sleep_time: Duration,
191191
}
192192

193193
impl Default for Config {
194194
fn default() -> Self {
195195
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,
202202
handle_price_account_update_worker_poll_size:
203203
default_handle_price_account_update_worker_poll_size(),
204204
handle_price_account_update_channel_size:
205205
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(),
208208
}
209209
}
210210
}

0 commit comments

Comments
 (0)