Skip to content

Commit

Permalink
fix: really make metrics optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Mar 2, 2022
1 parent 3dceab9 commit 794a6ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doppelgaenger-input/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ pub struct ApplicationConfig {
pub kafka: KafkaClient,
pub mongodb: MongoDbClient,

#[serde(default)]
pub metrics: MetricsConfig,
}

#[derive(Clone, Debug, Deserialize)]
#[derive(Clone, Debug, Default, Deserialize)]
pub struct MetricsConfig {
#[serde(default)]
pub bind_addr: Option<String>,
Expand Down

0 comments on commit 794a6ba

Please sign in to comment.