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
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
use anyhow::{Context, Result};
|
||||
use async_nats::jetstream::kv::{CreateErrorKind, UpdateErrorKind};
|
||||
use swarm_queue_client::wanted::{AgentState, AgentWanted, HiveWanted};
|
||||
use swarm_wire::wanted::{AgentState, AgentWanted, HiveWanted};
|
||||
|
||||
/// The three outcomes of one write attempt, which the two KV verbs report
|
||||
/// through separate error types.
|
||||
|
|
@ -167,7 +167,7 @@ impl WantedWriter {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::apply;
|
||||
use swarm_queue_client::wanted::AgentState;
|
||||
use swarm_wire::wanted::AgentState;
|
||||
|
||||
#[test]
|
||||
fn declaring_one_agent_preserves_every_other() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue