swarm-wire: take agent_status's wire types
This commit is contained in:
parent
6084fb6329
commit
9222a051f5
10 changed files with 180 additions and 181 deletions
|
|
@ -3,7 +3,7 @@
|
|||
//!
|
||||
//! **Keyed by the agent alone — no hive token**, which is the one way this
|
||||
//! bucket deliberately differs from its otherwise-identical sibling
|
||||
//! [`crate::agent_status`] (`{hive}.{agent}`). An agent is not fixed to a
|
||||
//! `swarm_wire::agent_status` (`{hive}.{agent}`). An agent is not fixed to a
|
||||
//! hive and can move between them; an icon keyed by where the agent
|
||||
//! currently runs would be stranded under the old key by a migration, and
|
||||
//! a reader would have to know the placement to ask the question at all.
|
||||
|
|
@ -29,7 +29,7 @@ use crate::Error;
|
|||
/// The KV bucket agent icons are published into, keyed by agent name.
|
||||
///
|
||||
/// A constant and not an option, for the reason
|
||||
/// [`crate::agent_status::BUCKET`] gives: writer and reader must name the
|
||||
/// [`swarm_wire::agent_status::BUCKET`] gives: writer and reader must name the
|
||||
/// same bucket, and an option is a way for the two to disagree.
|
||||
pub const BUCKET: &str = "agent-icons";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue