Skip to content

Admin space: change prefix from '@/service/<uuid>/mqtt' to '@mqtt/<uuid>' #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions zenoh-plugin-mqtt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ macro_rules! ke_for_sure {
}

lazy_static::lazy_static! {
static ref KE_PREFIX_ADMIN_SPACE: &'static keyexpr = ke_for_sure!("@/service");
static ref KE_PREFIX_ADMIN_SPACE: &'static keyexpr = ke_for_sure!("@mqtt");
static ref ADMIN_SPACE_KE_VERSION: &'static keyexpr = ke_for_sure!("version");
static ref ADMIN_SPACE_KE_CONFIG: &'static keyexpr = ke_for_sure!("config");
}
Expand Down Expand Up @@ -134,8 +134,7 @@ async fn run(
};

// declare admin space queryable
let admin_keyexpr_prefix =
*KE_PREFIX_ADMIN_SPACE / &zsession.zid().into_keyexpr() / ke_for_sure!("mqtt");
let admin_keyexpr_prefix = *KE_PREFIX_ADMIN_SPACE / &zsession.zid().into_keyexpr();
let admin_keyexpr_expr = (&admin_keyexpr_prefix) / ke_for_sure!("**");
tracing::debug!("Declare admin space on {}", admin_keyexpr_expr);
let config2 = config.clone();
Expand Down