Skip to content

Commit

Permalink
v1.17: Change DEFAULT_TPU_CONNECTION_POOL_SIZE to 1 (backport of #1014)…
Browse files Browse the repository at this point in the history
… (#1042)

Change DEFAULT_TPU_CONNECTION_POOL_SIZE to 1 (#1014)

(cherry picked from commit 15f2dad)

Co-authored-by: Lijun Wang <[email protected]>
  • Loading branch information
2 people authored and yihau committed May 7, 2024
1 parent 5c93f6e commit 7a511bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tpu-client/src/tpu_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ use {

pub const DEFAULT_TPU_ENABLE_UDP: bool = false;
pub const DEFAULT_TPU_USE_QUIC: bool = true;
pub const DEFAULT_TPU_CONNECTION_POOL_SIZE: usize = 4;

/// The default connection count is set to 1 -- it should
/// be sufficient for most use cases. Validators can use
/// --tpu-connection-pool-size to override this default value.
pub const DEFAULT_TPU_CONNECTION_POOL_SIZE: usize = 1;

pub type Result<T> = std::result::Result<T, TpuSenderError>;

Expand Down

0 comments on commit 7a511bd

Please sign in to comment.