Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 208d34f

Browse files
committedFeb 28, 2025
Format
1 parent af98cc3 commit 208d34f

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
@@ -180,30 +180,30 @@ pub struct Config {
180180
pub handle_price_account_update_worker_poll_size: usize,
181181
/// Channel size used to wait for the handle_price_account_update
182182
#[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,
184184
/// Minimum time for a subscriber to run
185185
#[serde(default = "default_subscriber_finished_min_time")]
186-
pub subscriber_finished_min_time: Duration,
186+
pub subscriber_finished_min_time: Duration,
187187
/// Time to sleep if the subscriber do not run for more than the minimum time
188188
#[serde(default = "default_subscriber_finished_sleep_time")]
189-
pub subscriber_finished_sleep_time: Duration,
189+
pub subscriber_finished_sleep_time: Duration,
190190
}
191191

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

0 commit comments

Comments
 (0)