Watch
0
0
Fork
You've already forked hyperhive
0

swarm-wire: take notices's wire types, fmt the moved imports

This commit is contained in:
atlas 2026-10-18 21:34:58 +02:00 • committed by mara
commit fc72bea151
12 changed files with 72 additions and 86 deletions

View file

@ -8,7 +8,7 @@
//! a status snapshot has a current value a late reader can always ask
//! for; a lifecycle notice ("container crashed at 04:12") does not — miss
//! it and there is nothing left to read later that says it happened. See
//! [`swarm_queue_client::notices`] for the stream this publishes into.
//! [`swarm_queue_client::notices`] for opening the stream this publishes into.
//!
//! **Best-effort, never fatal to the caller.** A hive with no queue
//! coordinates is a silent no-op (the ordinary case). A hive that cannot
@ -129,7 +129,7 @@ async fn publish(
.context("serialising the notice")?;
let js = async_nats::jetstream::new(client.clone());
js.publish(swarm_queue_client::notices::subject(hive), payload.into())
js.publish(swarm_wire::notices::subject(hive), payload.into())
.await
.context("publishing the notice")?
.await