Skip to content

Commit

Permalink
rename MAX_COALESCE_CHANNEL_SIZE to DEFAULT_MAX_COALESCE_CHANNEL_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
lijunwangs committed Jan 16, 2025
1 parent 9c0922b commit 8164a86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions streamer/src/quic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub struct SpawnServerResult {
}

/// Controls the the channel size for the PacketBatch coalesce
pub(crate) const MAX_COALESCE_CHANNEL_SIZE: usize = 10_000_000;
pub(crate) const DEFAULT_MAX_COALESCE_CHANNEL_SIZE: usize = 10_000_000;

/// Returns default server configuration along with its PEM certificate chain.
#[allow(clippy::field_reassign_with_default)] // https://github.com/rust-lang/rust-clippy/issues/6527
Expand Down Expand Up @@ -589,7 +589,7 @@ impl Default for QuicServerParams {
max_connections_per_ipaddr_per_min: DEFAULT_MAX_CONNECTIONS_PER_IPADDR_PER_MINUTE,
wait_for_chunk_timeout: DEFAULT_WAIT_FOR_CHUNK_TIMEOUT,
coalesce: DEFAULT_TPU_COALESCE,
coalesce_channel_size: MAX_COALESCE_CHANNEL_SIZE,
coalesce_channel_size: DEFAULT_MAX_COALESCE_CHANNEL_SIZE,
}
}
}
Expand Down

0 comments on commit 8164a86

Please sign in to comment.