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
|
|
@ -1,7 +1,7 @@
|
|||
//! Converging this hive onto the agent set the swarm controller declares.
|
||||
//!
|
||||
//! The controller gives each hive its own `hive-wanted-<hive>` bucket (see
|
||||
//! [`swarm_queue_client::wanted`]); this reads its own and acts on it. It is
|
||||
//! [`swarm_wire::wanted`]); this reads its own and acts on it. It is
|
||||
//! the **repair** path, not the fast one: a deploy event
|
||||
//! ([`crate::swarm_status`]) is core NATS, so a hive that was down never hears
|
||||
//! it, and until this existed that left the hive on its old shape with nothing
|
||||
|
|
@ -33,7 +33,7 @@ use std::collections::{BTreeMap, BTreeSet};
|
|||
use std::sync::Arc;
|
||||
|
||||
use anyhow::{Context, Result};
|
||||
use swarm_queue_client::wanted::{AgentState, HiveWanted};
|
||||
use swarm_wire::wanted::{AgentState, HiveWanted};
|
||||
|
||||
use crate::coordinator::Coordinator;
|
||||
use crate::power::Wanted;
|
||||
|
|
@ -469,7 +469,7 @@ mod tests {
|
|||
|
||||
use super::{Converge, PauseConverge, Plan, carries_a_declaration, decide, decide_pause, plan};
|
||||
use crate::power::Wanted;
|
||||
use swarm_queue_client::wanted::{AgentState, AgentWanted, HiveWanted};
|
||||
use swarm_wire::wanted::{AgentState, AgentWanted, HiveWanted};
|
||||
|
||||
fn declaration(agents: &[(&str, AgentState)]) -> HiveWanted {
|
||||
HiveWanted {
|
||||
|
|
|
|||
Loading…
Reference in a new issue