swarm-controller: drop the relay subscription to the refused hive-scoped agent subject
This commit is contained in:
parent
91fdf96a67
commit
8a7733b3f5
3 changed files with 37 additions and 63 deletions
|
|
@ -11,9 +11,8 @@
|
|||
//! Each subagent carries the stream's own publish time of its newest row, so
|
||||
//! a reader can tell a subagent that is running from one that has gone quiet.
|
||||
//!
|
||||
//! **No hive lookup.** Unlike [`crate::term_stream`], there is no
|
||||
//! hive-scoped subject to follow: only the agent's own credential is granted
|
||||
//! these subjects.
|
||||
//! **No agent-status lookup.** Unlike [`crate::term_stream`], an agent that
|
||||
//! has never reported gets an empty stream, not a 404.
|
||||
//!
|
||||
//! **Live tail only, output only.** The relay is a core subscription, the
|
||||
//! same as the agent's own terminal route, so a reader sees rows published
|
||||
|
|
@ -221,9 +220,9 @@ pub(crate) async fn stream_subagent_term(
|
|||
let agent = ident(&agent).map_err(bad_request)?;
|
||||
let subagent = ident(&subagent).map_err(bad_request)?;
|
||||
let client = connected_client(&state).map_err(|e| unavailable(&e))?;
|
||||
let subscriber = crate::term_stream::subscribe_all(
|
||||
let subscriber = crate::term_stream::subscribe(
|
||||
&client,
|
||||
&[subagent_term::subject(&agent, &subagent)],
|
||||
subagent_term::subject(&agent, &subagent),
|
||||
"subagent term",
|
||||
)
|
||||
.await?;
|
||||
|
|
|
|||
Loading…
Reference in a new issue