Unverified Commit 065296c3 authored by Yan Ru Pei's avatar Yan Ru Pei Committed by GitHub
Browse files

chore: use hyphens for Router-related keys (#4325)


Signed-off-by: default avatarPeaBrane <yanrpei@gmail.com>
parent 9f0a3155
......@@ -11,4 +11,4 @@ mod worker_monitor;
pub use worker_monitor::{KvWorkerMonitor, WorkerLoadState};
/// The root etcd path for KV Router registrations
pub const KV_ROUTERS_ROOT_PATH: &str = "v1/kv_routers";
pub const KV_ROUTERS_ROOT_PATH: &str = "v1/kv-routers";
......@@ -479,10 +479,6 @@ async fn cleanup_orphaned_consumers(
};
// Filter to only routers for this component
// Note: keys differ between storage backends:
// - FileStore: "namespace/component/uuid" (relative to bucket)
// - EtcdStore: "v1/kv_routers/namespace/component/uuid" (full path)
// Use contains() to handle both cases
let component_path = component.path();
let active_uuids: HashSet<String> = entries
.iter()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment