in src/main/java/com/googlesource/gerrit/plugins/ratelimiter/ReplenishCommand.java [61:77]
protected void run() throws UnloggedFailure {
if (all && (!accountIds.isEmpty() || !remoteHosts.isEmpty())) {
throw die("cannot use --all with --user or --remotehost");
}
if (all) {
for (RateLimiter rateLimiter : uploadPackPerHour.asMap().values()) {
rateLimiter.replenishPermits();
}
return;
}
for (Account.Id accountId : accountIds) {
replenishIfPresent(Integer.toString(accountId.get()));
}
for (String remoteHost : remoteHosts) {
replenishIfPresent(remoteHost);
}
}