Skip to content

Commit

Permalink
update use of the variable
Browse files Browse the repository at this point in the history
  • Loading branch information
henil committed Dec 3, 2022
1 parent bf1120e commit b247c20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rumqttd/demo.toml
Expand Up @@ -57,7 +57,7 @@ next_connection_delay_ms = 1

[prometheus]
port = 9042
timeout = 1
interval = 1

[ws]

Expand Down
2 changes: 1 addition & 1 deletion rumqttd/src/server/broker.rs
Expand Up @@ -212,7 +212,7 @@ impl Broker {

if let Some(prometheus_setting) = &self.config.prometheus {
let port = prometheus_setting.port;
let timeout = prometheus_setting.timeout;
let timeout = prometheus_setting.interval;
let metrics_thread = thread::Builder::new().name("Metrics".to_owned());
let meter_link = self.meters().unwrap();
metrics_thread.spawn(move || {
Expand Down

0 comments on commit b247c20

Please sign in to comment.