From 98e84e9a3ee6fec55dacd5a99138fd83b4360d8c Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Wed, 18 Sep 2024 15:02:53 +0000 Subject: [PATCH] Notify subscribers on `Notifier::insert_json5` --- zenoh/src/api/config.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zenoh/src/api/config.rs b/zenoh/src/api/config.rs index 675c8a93a9..673bc5d422 100644 --- a/zenoh/src/api/config.rs +++ b/zenoh/src/api/config.rs @@ -190,7 +190,9 @@ impl Notifier { } 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)]