Skip to content

Commit

Permalink
Notify subscribers on Notifier<Config>::insert_json5
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz committed Sep 18, 2024
1 parent a5722dd commit 98e84e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zenoh/src/api/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ impl Notifier<Config> {
}

pub fn insert_json5(&self, key: &str, value: &str) -> ZResult<()> {
self.lock_config().insert_json5(key, value)
self.lock_config().insert_json5(key, value)?;
self.notify(key);
Ok(())
}

#[allow(dead_code)]
Expand Down

0 comments on commit 98e84e9

Please sign in to comment.