Watch
0
0
Fork
You've already forked hyperhive
0

the swarm controller streams every inter-agent message from the agents' terminal rows

This commit is contained in:
atlas 2026-10-18 17:27:32 +02:00
commit c32906b893
11 changed files with 520 additions and 12 deletions

View file

@ -153,10 +153,10 @@ pub(crate) async fn replay_or_live(
}
/// One row read from a terminal stream.
struct Row {
pub(crate) struct Row {
/// Its stream sequence, when the delivery names one.
seq: Option<u64>,
payload: bytes::Bytes,
pub(crate) seq: Option<u64>,
pub(crate) payload: bytes::Bytes,
}
/// The rows on `subject` in the stream `stream_name`: every row after
@ -170,7 +170,7 @@ struct Row {
/// subject's rows, so a fresh reader's consumer starts at the oldest row and
/// the reader drops all but the newest [`agent_term::REPLAY_ROWS`] it counts
/// as pending when the consumer is created.
async fn replay(
pub(crate) async fn replay(
client: &async_nats::Client,
stream_name: &str,
subject: String,