Skip to content

Commit

Permalink
Merge pull request #713 from blockscout/lymarenkolev/bens/fix-config
Browse files Browse the repository at this point in the history
[BENS] hot fix settings config
  • Loading branch information
sevenzing authored Dec 20, 2023
2 parents 18bece6 + 912bfe5 commit 9c53160
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blockscout-ens/bens-server/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ impl ConfigSettings for Settings {
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
#[serde(deny_unknown_fields)]
pub struct SubgraphsReaderSettings {
#[serde(default)]
pub networks: HashMap<i64, NetworkSettings>,
#[serde(default = "default_refresh_cache_schedule")]
pub refresh_cache_schedule: String,
Expand Down Expand Up @@ -58,13 +59,15 @@ impl Default for SubgraphsReaderSettings {
#[derive(Debug, Clone, Deserialize, PartialEq, Eq, Default)]
pub struct NetworkSettings {
pub blockscout: BlockscoutSettings,
#[serde(default)]
pub subgraphs: HashMap<String, SubgraphSettings>,
}

#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
pub struct SubgraphSettings {
#[serde(default = "default_use_cache")]
pub use_cache: bool,
#[serde(default)]
pub empty_label_hash: Option<Bytes>,
}

Expand Down

0 comments on commit 9c53160

Please sign in to comment.