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:
parent
b84e880961
commit
2d614365e7
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue