From ea3008a77c76df5d4584cc5292ad14af877a6b11 Mon Sep 17 00:00:00 2001 From: Lijun Wang <83639177+lijunwangs@users.noreply.github.com> Date: Mon, 22 Apr 2024 13:29:34 -0700 Subject: [PATCH] revert unintended changes --- streamer/src/nonblocking/stream_throttle.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/streamer/src/nonblocking/stream_throttle.rs b/streamer/src/nonblocking/stream_throttle.rs index 6656752bca1f7c..699d8d7faf33fb 100644 --- a/streamer/src/nonblocking/stream_throttle.rs +++ b/streamer/src/nonblocking/stream_throttle.rs @@ -258,7 +258,7 @@ pub mod test { assert_eq!( load_ema.available_load_capacity_in_throttling_duration( ConnectionPeerType::Unstaked, - 10000 + 10000, ), 10 ); @@ -286,7 +286,7 @@ pub mod test { assert_eq!( load_ema.available_load_capacity_in_throttling_duration( ConnectionPeerType::Staked(15), - 10000 + 10000, ), 30 ); @@ -296,7 +296,7 @@ pub mod test { assert_eq!( load_ema.available_load_capacity_in_throttling_duration( ConnectionPeerType::Staked(1000), - 10000 + 10000, ), 2000 ); @@ -307,7 +307,7 @@ pub mod test { assert_eq!( load_ema.available_load_capacity_in_throttling_duration( ConnectionPeerType::Staked(15), - 10000 + 10000, ), 120 ); @@ -317,7 +317,7 @@ pub mod test { assert_eq!( load_ema.available_load_capacity_in_throttling_duration( ConnectionPeerType::Staked(1000), - 10000 + 10000, ), 8000 ); @@ -329,7 +329,7 @@ pub mod test { assert_eq!( load_ema.available_load_capacity_in_throttling_duration( ConnectionPeerType::Staked(15), - 10000 + 10000, ), 120 ); @@ -338,7 +338,7 @@ pub mod test { assert_eq!( load_ema.available_load_capacity_in_throttling_duration( ConnectionPeerType::Staked(1000), - 10000 + 10000, ), 8000 ); @@ -348,7 +348,7 @@ pub mod test { assert_eq!( load_ema.available_load_capacity_in_throttling_duration( ConnectionPeerType::Staked(1), - 40000 + 40000, ), load_ema .max_unstaked_load_in_throttling_window