swarm-queue-client: fix the max_payload and stream-size docs, share the token form, re-check rotation under the lock
This commit is contained in:
parent
56cc8a86ec
commit
5ae00f8c3e
1 changed files with 145 additions and 43 deletions
|
|
@ -13,8 +13,9 @@ const OUTPUT_MAX_BYTES: i64 = 64 * 1024 * 1024;
|
|||
|
||||
/// The config [`open_output`] creates `agent`'s output stream with.
|
||||
///
|
||||
/// `max_message_size` is the queue's live `max_payload` ([`crate::max_payload`]),
|
||||
/// so the stream never rejects a row the queue itself accepted.
|
||||
/// `max_message_size` is the queue's `max_payload` ([`crate::max_payload`]) when
|
||||
/// the stream is created, and stays at that size when the queue's limit later
|
||||
/// changes.
|
||||
pub(crate) fn output_config(
|
||||
agent: &str,
|
||||
max_message_size: i32,
|
||||
|
|
|
|||
Loading…
Reference in a new issue