swarm-wire: take notices's wire types, fmt the moved imports
This commit is contained in:
parent
e111807f59
commit
fc72bea151
12 changed files with 72 additions and 86 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue