the swarm controller streams every inter-agent message from the agents' terminal rows
This commit is contained in:
parent
87b1f94ac6
commit
c32906b893
11 changed files with 520 additions and 12 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue