Skip to content

Commit

Permalink
update sentry struct name
Browse files Browse the repository at this point in the history
  • Loading branch information
findolor committed Dec 17, 2024
1 parent 3220086 commit e768197
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/settings/src/sentry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use std::sync::{Arc, RwLock};
use strict_yaml_rust::StrictYaml;

#[derive(Clone, Debug)]
pub struct YamlSentry;
pub struct Sentry;

impl YamlParsableString for YamlSentry {
impl YamlParsableString for Sentry {
fn parse_from_yaml(_: Arc<RwLock<StrictYaml>>) -> Result<String, YamlError> {
Err(YamlError::InvalidTraitFunction)
}
Expand Down
6 changes: 3 additions & 3 deletions crates/settings/src/yaml/orderbook.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;
use crate::{
metaboard::YamlMetaboard, sentry::YamlSentry, subgraph::YamlSubgraph, Deployer, Metaboard,
Network, Orderbook, Subgraph, Token,
metaboard::YamlMetaboard, sentry::Sentry, subgraph::YamlSubgraph, Deployer, Metaboard, Network,
Orderbook, Subgraph, Token,
};
use std::sync::{Arc, RwLock};
use strict_yaml_rust::StrictYamlEmitter;
Expand Down Expand Up @@ -85,7 +85,7 @@ impl OrderbookYaml {
}

pub fn get_sentry(&self) -> Result<bool, YamlError> {
let value = YamlSentry::parse_from_yaml_optional(self.document.clone())?;
let value = Sentry::parse_from_yaml_optional(self.document.clone())?;
Ok(value.map_or(false, |v| v == "true"))
}
}
Expand Down

0 comments on commit e768197

Please sign in to comment.