experiment: reduce number of source endpoints to 1 (#386)

Prediction is that this has no negative effect but reduces memory use a
lot.
This commit is contained in:
Christian Kamm 2024-04-03 17:38:42 +02:00 committed by godmodegalactus
parent b84e880961
commit 2d614365e7
No known key found for this signature in database
GPG Key ID: 22DA4A30887FDA3C
1 changed files with 2 additions and 2 deletions

View File

@ -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())