Skip to content

Commit

Permalink
lower max_streams_per_ms to 25k pps from 250k pps
Browse files Browse the repository at this point in the history
  • Loading branch information
lijunwangs committed Apr 10, 2024
1 parent 69e0a06 commit 3cfe256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions streamer/src/nonblocking/stream_throttle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,13 @@ pub mod test {
Arc::new(StreamStats::default()),
MAX_UNSTAKED_CONNECTIONS,
));
// 25K packets per ms * 20% / 500 max unstaked connections
// 2500 packets per 100 ms * 20% / 500 max unstaked connections
assert_eq!(
load_ema.available_load_capacity_in_throttling_duration(
ConnectionPeerType::Unstaked,
10000,
),
10
1
);
}

Expand Down

0 comments on commit 3cfe256

Please sign in to comment.