Skip to content

Commit

Permalink
fix(configurer): apply own config on the fly
Browse files Browse the repository at this point in the history
  • Loading branch information
loyd committed Dec 1, 2024
1 parent fa02ecf commit 270764a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- logger: replace the `atty` crate with `IsTerminal` to fix cargo-audit warnings.
- macros/msg: better go-to-definition via RA ([#141]).
- macros/message: irregular warnings about `non_snake_case` by RA.
- configurer: apply own configuration on the fly.

[#74]: https://github.com/elfo-rs/elfo/issues/74
[#135]: https://github.com/elfo-rs/elfo/pull/135
Expand Down
2 changes: 0 additions & 2 deletions elfo-configurer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,6 @@ async fn load_raw_config(path: impl AsRef<Path>) -> Result<Value, String> {
fn match_configs(topology: &Topology, config: &Value) -> Vec<ConfigWithMeta> {
let mut configs: Vec<ConfigWithMeta> = topology
.locals()
// Entrypoints' configs are updated only at startup.
.filter(|group| !group.is_entrypoint)
.map(|group| {
let empty = Value::Map(Default::default());
let common = helpers::lookup_value(config, "common").unwrap_or(&empty);
Expand Down

0 comments on commit 270764a

Please sign in to comment.