Skip to content

Commit

Permalink
experiment: reduce number of source endpoints to 1
Browse files Browse the repository at this point in the history
Prediction is that this has no negative effect but reduces memory use a
lot.
  • Loading branch information
ckamm committed Apr 3, 2024
1 parent 9d776ed commit b9e470b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/src/tpu_utils/tpu_connection_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ impl TpuConnectionManager {
pub async fn new(
certificate: rustls::Certificate,
key: rustls::PrivateKey,
fanout: usize,
_fanout: usize,
) -> Self {
let number_of_clients = fanout * 4;
let number_of_clients = 1; // fanout * 4;
Self {
endpoints: RotatingQueue::new(number_of_clients, || {
QuicConnectionUtils::create_endpoint(certificate.clone(), key.clone())
Expand Down

0 comments on commit b9e470b

Please sign in to comment.