optimize: simplify breaker algorithm (#4151)

This commit is contained in:
Kevin Wan
2024-05-14 17:02:21 +08:00
committed by GitHub
parent a0d954dfab
commit e0c16059d9
2 changed files with 10 additions and 22 deletions

View File

@@ -127,7 +127,7 @@ func TestGoogleBreakerMoreFallingBuckets(t *testing.T) {
b := getGoogleBreaker()
func() {
stopChan := time.After(testInterval * minBucketsToSpeedUp * 2)
stopChan := time.After(testInterval * 6)
for {
time.Sleep(time.Millisecond)
select {