Skip to content

Commit

Permalink
fix: double tier decrement in tiered proxy (#2468)
Browse files Browse the repository at this point in the history
  • Loading branch information
barjin committed May 15, 2024
1 parent 8071d34 commit 3a8204b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/core/src/proxy_configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ class ProxyTierTracker {

if (this.histogram[this.currentTier] > Math.min(left, right)) {
this.currentTier = left <= right ? this.currentTier - 1 : this.currentTier + 1;
}

if (this.histogram[this.currentTier] === left) {
} else if (this.histogram[this.currentTier] === left) {
this.currentTier--;
}
}
Expand Down

0 comments on commit 3a8204b

Please sign in to comment.