drop the manager socket, the no-op migrate branch and other ruth special cases
start_manager bound the same path register_agent binds. The migrate branch, hive-priv-sock::MANAGER_NAME and MANAGER_CONTAINER were no-ops or dead. The send allow-list docs promised a manager exemption the code never had. Tests that used ruth as the manager fixture use plain names.
This commit is contained in:
parent
df2394963a
commit
746c522f4e
16 changed files with 36 additions and 117 deletions
|
|
@ -27,7 +27,7 @@ use anyhow::{Context, Result};
|
|||
use tokio::process::Command;
|
||||
|
||||
use crate::coordinator::Coordinator;
|
||||
use crate::lifecycle::{self, AGENT_PREFIX, MANAGER_CONTAINER, MANAGER_NAME};
|
||||
use crate::lifecycle::{self, AGENT_PREFIX};
|
||||
use crate::meta;
|
||||
|
||||
const KILL_SWITCH: &str = "HIVE_SKIP_META_MIGRATION";
|
||||
|
|
@ -157,11 +157,7 @@ async fn enumerate_agents() -> Result<Vec<hive_types::Ident>> {
|
|||
Ok(containers
|
||||
.into_iter()
|
||||
.filter_map(|c| {
|
||||
let name = if c == MANAGER_CONTAINER {
|
||||
MANAGER_NAME
|
||||
} else {
|
||||
c.strip_prefix(AGENT_PREFIX)?
|
||||
};
|
||||
let name = c.strip_prefix(AGENT_PREFIX)?;
|
||||
hive_types::Ident::parse(name).ok()
|
||||
})
|
||||
.collect())
|
||||
|
|
|
|||
Loading…
Reference in a new issue