This commit is contained in:
Looly
2024-08-23 12:06:06 +08:00
parent 3ddad8ff6c
commit e185097ce9
27 changed files with 560 additions and 289 deletions

View File

@@ -23,7 +23,7 @@ public class SemaphoreRateLimiterTest {
final boolean b1 = rateLimiter.tryAcquire(1);
Assertions.assertFalse(b1);
ThreadUtil.sleep(310);
ThreadUtil.sleep(400);
// 填充新的许可
final boolean b2 = rateLimiter.tryAcquire(5);