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(
|
pub async fn new(
|
||||||
certificate: rustls::Certificate,
|
certificate: rustls::Certificate,
|
||||||
key: rustls::PrivateKey,
|
key: rustls::PrivateKey,
|
||||||
fanout: usize,
|
_fanout: usize,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
let number_of_clients = fanout * 4;
|
let number_of_clients = 1; // fanout * 4;
|
||||||
Self {
|
Self {
|
||||||
endpoints: RotatingQueue::new(number_of_clients, || {
|
endpoints: RotatingQueue::new(number_of_clients, || {
|
||||||
QuicConnectionUtils::create_endpoint(certificate.clone(), key.clone())
|
QuicConnectionUtils::create_endpoint(certificate.clone(), key.clone())
|
||||||
|
|
Loading…
Reference in New Issue