(index) Fix off-by-1 error in the domain count limiter

This commit is contained in:
Viktor Lofgren 2023-12-16 16:57:05 +01:00
parent 320882c34a
commit 6f2bf38f0e

View File

@ -60,7 +60,7 @@ public class UrlDeduplicator {
final var domain = details.getUrl().getDomain(); final var domain = details.getUrl().getDomain();
final String key = domain.getDomainKey(); final String key = domain.getDomainKey();
return keyCount.adjustOrPutValue(key, 1, 1) < resultsPerKey; return keyCount.adjustOrPutValue(key, 1, 1) <= resultsPerKey;
} }
} }