Skip to content

Commit 8164a86

Browse files
committed
rename MAX_COALESCE_CHANNEL_SIZE to DEFAULT_MAX_COALESCE_CHANNEL_SIZE
1 parent 9c0922b commit 8164a86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

streamer/src/quic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub struct SpawnServerResult {
4747
}
4848

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

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

0 commit comments

Comments
 (0)