Skip to content

Commit

Permalink
Set stats_interval on receiving gateway configuration.
Browse files Browse the repository at this point in the history
Fixes #181.
  • Loading branch information
brocaar committed Sep 13, 2024
1 parent 170d0db commit 1adae5a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chirpstack-concentratord-2g4/src/handler/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ pub fn update_configuration(
}

// set config
if let Some(stats_interval) = new_config.stats_interval {
config.concentratord.stats_interval = stats_interval.try_into()?;
}
config.gateway.config_version.clone_from(&new_config.version);
config.gateway.concentrator = concentrator;

Expand Down
3 changes: 3 additions & 0 deletions chirpstack-concentratord-sx1301/src/handler/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ pub fn update_configuration(
}

// set config
if let Some(stats_interval) = new_config.stats_interval {
config.concentratord.stats_interval = stats_interval.try_into()?;
}
config
.gateway
.config_version
Expand Down
3 changes: 3 additions & 0 deletions chirpstack-concentratord-sx1302/src/handler/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ pub fn update_configuration(
}

// set config
if let Some(stats_interval) = new_config.stats_interval {
config.concentratord.stats_interval = stats_interval.try_into()?;
}
config
.gateway
.config_version
Expand Down

0 comments on commit 1adae5a

Please sign in to comment.