Skip to content

Commit

Permalink
revert unintended changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lijunwangs committed Apr 22, 2024
1 parent 112af05 commit ea3008a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions streamer/src/nonblocking/stream_throttle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ pub mod test {
assert_eq!(
load_ema.available_load_capacity_in_throttling_duration(
ConnectionPeerType::Unstaked,
10000
10000,
),
10
);
Expand Down Expand Up @@ -286,7 +286,7 @@ pub mod test {
assert_eq!(
load_ema.available_load_capacity_in_throttling_duration(
ConnectionPeerType::Staked(15),
10000
10000,
),
30
);
Expand All @@ -296,7 +296,7 @@ pub mod test {
assert_eq!(
load_ema.available_load_capacity_in_throttling_duration(
ConnectionPeerType::Staked(1000),
10000
10000,
),
2000
);
Expand All @@ -307,7 +307,7 @@ pub mod test {
assert_eq!(
load_ema.available_load_capacity_in_throttling_duration(
ConnectionPeerType::Staked(15),
10000
10000,
),
120
);
Expand All @@ -317,7 +317,7 @@ pub mod test {
assert_eq!(
load_ema.available_load_capacity_in_throttling_duration(
ConnectionPeerType::Staked(1000),
10000
10000,
),
8000
);
Expand All @@ -329,7 +329,7 @@ pub mod test {
assert_eq!(
load_ema.available_load_capacity_in_throttling_duration(
ConnectionPeerType::Staked(15),
10000
10000,
),
120
);
Expand All @@ -338,7 +338,7 @@ pub mod test {
assert_eq!(
load_ema.available_load_capacity_in_throttling_duration(
ConnectionPeerType::Staked(1000),
10000
10000,
),
8000
);
Expand All @@ -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
Expand Down

0 comments on commit ea3008a

Please sign in to comment.