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
|
|
@ -477,10 +477,10 @@ impl Policy {
|
|||
fn notices_subjects() -> [String; 2] {
|
||||
// Unlike `Self::stream()` above, no `KV_` prefix: the notices
|
||||
// stream is a plain `JetStream` stream, not a KV bucket, so its
|
||||
// NATS stream name *is* `swarm_queue_client::notices::STREAM`
|
||||
// NATS stream name *is* `swarm_wire::notices::STREAM`
|
||||
// verbatim — the `KV_` prefix is `create_key_value`'s own
|
||||
// convention, not something every stream carries.
|
||||
let stream = swarm_queue_client::notices::STREAM;
|
||||
let stream = swarm_wire::notices::STREAM;
|
||||
[
|
||||
format!("$JS.API.STREAM.INFO.{stream}"),
|
||||
format!("$JS.API.STREAM.CREATE.{stream}"),
|
||||
|
|
@ -514,7 +514,7 @@ impl Policy {
|
|||
// Named from the defining crate so a rename cannot leave the grant
|
||||
// pointing at a subject nobody publishes to. Not `extra_hive_subjects`:
|
||||
// that is for streams this crate does not know about.
|
||||
subjects.push(swarm_queue_client::notices::subject(hive));
|
||||
subjects.push(swarm_wire::notices::subject(hive));
|
||||
// Reading the wanted-state bucket, which is **this hive's own**.
|
||||
//
|
||||
// One bucket per hive rather than one keyed by hive, so that a *watch*
|
||||
|
|
|
|||
Loading…
Reference in a new issue