Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.17: corrected to not use hardcoded connections count for unstaked (backport of #633) #762

Merged
merged 2 commits into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions streamer/src/nonblocking/quic.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use {
crate::{
quic::{configure_server, QuicServerError, StreamStats, MAX_UNSTAKED_CONNECTIONS},
quic::{configure_server, QuicServerError, StreamStats},
streamer::StakedNodes,
tls_certificates::get_pubkey_from_tls_certificate,
},
Expand Down Expand Up @@ -748,7 +748,7 @@ fn max_streams_for_connection_in_100ms(
} else {
Percentage::from(MAX_UNSTAKED_STREAMS_PERCENT)
.apply_to(max_streams_per_interval)
.saturating_div(MAX_UNSTAKED_CONNECTIONS as u64)
.saturating_div(max_unstaked_connections as u64)
};

let min_staked_streams_per_100ms = if max_unstaked_connections == 0 {
Expand Down
Loading