swarm-wire: take wanted's wire types
This commit is contained in:
parent
c6b1364684
commit
266be0a5db
17 changed files with 298 additions and 282 deletions
|
|
@ -404,7 +404,7 @@ impl Policy {
|
|||
/// reader both call, so a flag here would let two deployments disagree
|
||||
/// about a name they must share.
|
||||
fn wanted_stream(hive: &str) -> String {
|
||||
format!("KV_{}", swarm_queue_client::wanted::bucket(hive))
|
||||
format!("KV_{}", swarm_wire::wanted::bucket(hive))
|
||||
}
|
||||
|
||||
/// The stream backing the per-agent status bucket.
|
||||
|
|
@ -530,7 +530,7 @@ impl Policy {
|
|||
format!("$JS.API.STREAM.INFO.{wanted}"),
|
||||
format!(
|
||||
"$JS.API.DIRECT.GET.{wanted}.$KV.{}.{hive}",
|
||||
swarm_queue_client::wanted::bucket(hive)
|
||||
swarm_wire::wanted::bucket(hive)
|
||||
),
|
||||
// The watch the paragraph above buys: a KV watch is a consumer, so
|
||||
// `DIRECT.GET` covers the boot-time read and nothing after it.
|
||||
|
|
|
|||
Loading…
Reference in a new issue