Skip to content

Commit

Permalink
chore: lower max_append_inflight_bytes default
Browse files Browse the repository at this point in the history
  • Loading branch information
shikhar authored Dec 10, 2024
1 parent df4e942 commit 7dfa0ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl ClientConfig {
uri_scheme: http::uri::Scheme::HTTPS,
retry_backoff_duration: Duration::from_millis(100),
max_attempts: 3,
max_append_inflight_bytes: 256 * MIB_BYTES,
max_append_inflight_bytes: 100 * MIB_BYTES,
}
}

Expand Down Expand Up @@ -268,7 +268,7 @@ impl ClientConfig {
/// Maximum total size of currently inflight (pending acknowledgment) append
/// batches within an append session, as measured by `MeteredSize` formula.
///
/// Must be at least 1MiB. Defaults to 256MiB.
/// Must be at least 1 MiB. Defaults to 100 MiB.
pub fn with_max_append_inflight_bytes(self, max_append_inflight_bytes: u64) -> Self {
assert!(
max_append_inflight_bytes >= MIB_BYTES,
Expand Down

0 comments on commit 7dfa0ad

Please sign in to comment.