Remove redundant code comments for improved readability and maintainability
This commit is contained in:
@@ -46,9 +46,6 @@ public final class RateLimitConfig {
|
||||
.sorted((a, c) -> Integer.compare(c.prefix.length(), a.prefix.length()))
|
||||
.toList();
|
||||
|
||||
// Collect the distinct limiter instances once so the gate's periodic cleanup can iterate
|
||||
// them. Identity-based de-duplication keeps a limiter shared across several rules from
|
||||
// being cleaned multiple times per pass.
|
||||
Set<RateLimiter> limiters = Collections.newSetFromMap(new IdentityHashMap<>());
|
||||
if (globalRule != null) limiters.add(globalRule.limiter());
|
||||
for (Rule r : exactPathRules.values()) limiters.add(r.limiter());
|
||||
|
||||
Reference in New Issue
Block a user