(index) Fix off-by-1 error in the domain count limiter
This commit is contained in:
parent
320882c34a
commit
6f2bf38f0e
@ -60,7 +60,7 @@ public class UrlDeduplicator {
|
||||
final var domain = details.getUrl().getDomain();
|
||||
final String key = domain.getDomainKey();
|
||||
|
||||
return keyCount.adjustOrPutValue(key, 1, 1) < resultsPerKey;
|
||||
return keyCount.adjustOrPutValue(key, 1, 1) <= resultsPerKey;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user