Skip to content

Commit

Permalink
style: endline + spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
cytadela8 committed Jul 9, 2024
1 parent 3865d20 commit 292cb3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions core/lib/config/src/configs/base_token_adjuster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub const DEFAULT_CACHE_UPDATE_INTERVAL: u64 = 500;
#[derive(Debug, Clone, PartialEq, Deserialize)]
pub struct BaseTokenAdjusterConfig {
/// How often to spark a new cycle of the ratio persister to fetch external prices and persis ratios.
#[serde(default = "BaseTokenAdjusterConfig::default_pooling_interval")]
#[serde(default = "BaseTokenAdjusterConfig::default_polling_interval")]
pub price_polling_interval_ms: u64,

/// We (in memory) cache the ratio fetched from db. This interval defines frequency of refetch from db.
Expand All @@ -22,14 +22,14 @@ pub struct BaseTokenAdjusterConfig {
impl Default for BaseTokenAdjusterConfig {
fn default() -> Self {
Self {
price_polling_interval_ms: Self::default_pooling_interval(),
price_polling_interval_ms: Self::default_polling_interval(),
price_cache_update_interval_ms: Self::default_cache_update_interval(),
}
}
}

impl BaseTokenAdjusterConfig {
fn default_pooling_interval() -> u64 {
fn default_polling_interval() -> u64 {
DEFAULT_INTERVAL_MS
}

Expand Down
2 changes: 1 addition & 1 deletion etc/env/base/base_token_adjuster.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# How often to poll external price feeds for the base token price.
price_polling_interval_ms = "30000"

price_cache_update_interval_ms = "2000"
price_cache_update_interval_ms = "2000"

0 comments on commit 292cb3b

Please sign in to comment.