Skip to content

Commit

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

Change DEFAULT_TPU_CONNECTION_POOL_SIZE to 1 (#1014)

Co-authored-by: Lijun Wang <83639177+lijunwangs@users.noreply.github.com>
  • Loading branch information
2 people authored and yihau committed Apr 26, 2024
1 parent e41d197 commit 4ede51d
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 4ede51d

Please sign in to comment.