swarm-queue-client: fix broken intra-doc link in agent_status key()

This commit is contained in:
damocles 2026-09-02 05:04:11 +02:00 committed by mara
commit 4383760807

View file

@ -36,8 +36,14 @@ pub const BUCKET: &str = "agent-status";
///
/// `/`-joined rather than NATS's usual `.`-joined subject style: this is a
/// KV key, not a subject, and neither `hive` nor `agent` names can contain
/// `/` ([`hive_types::Ident`]'s charset is `[a-z0-9-]`), so the join is
/// `/` (`hive_types::Ident`'s charset is `[a-z0-9-]`), so the join is
/// unambiguous to split back apart if a consumer ever needs to.
///
/// Plain code span above, deliberately not an intra-doc link — this crate
/// doesn't depend on `hive_types`, and a bracketed reference to its `Ident`
/// type fails `cargo doc` with "no item named `hive_types` in scope" under
/// this workspace's `docs-rustdoc` CI job, which treats broken doc links as
/// errors.
#[must_use]
pub fn key(hive: &str, agent: &str) -> String {
format!("{hive}/{agent}")