fix: micro fixes
This commit is contained in:
@@ -104,4 +104,3 @@ public class AppConfig {
|
|||||||
return json().encode();
|
return json().encode();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,6 @@ public class AuthHandler {
|
|||||||
if (session != null) {
|
if (session != null) {
|
||||||
session.destroy();
|
session.destroy();
|
||||||
}
|
}
|
||||||
// Явное удаление cookie сессии
|
|
||||||
ctx.response().removeCookie("admin.session");
|
ctx.response().removeCookie("admin.session");
|
||||||
ctx.response().end(new JsonObject().put("success", true).encode());
|
ctx.response().end(new JsonObject().put("success", true).encode());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ public class RedisRateLimiter implements Handler<RoutingContext> {
|
|||||||
private final ConcurrentHashMap<String, AtomicLong> blockedByClient = new ConcurrentHashMap<>();
|
private final ConcurrentHashMap<String, AtomicLong> blockedByClient = new ConcurrentHashMap<>();
|
||||||
|
|
||||||
public RedisRateLimiter(Redis redis, int limitPerWindow, long windowMillis) {
|
public RedisRateLimiter(Redis redis, int limitPerWindow, long windowMillis) {
|
||||||
this.logger = LoggerFactory.getLogger("[RedisRateLimiter]");
|
this.logger = LoggerFactory.getLogger("[RateLimiter]");
|
||||||
this.redis = redis;
|
this.redis = redis;
|
||||||
this.limitPerWindow = limitPerWindow;
|
this.limitPerWindow = limitPerWindow;
|
||||||
this.windowMillis = windowMillis;
|
this.windowMillis = windowMillis;
|
||||||
|
|||||||
@@ -11,7 +11,8 @@ import su.xserver.iikocon.service.ExternalDataBaseService;
|
|||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.ZoneOffset;
|
import java.time.ZoneOffset;
|
||||||
import java.time.ZonedDateTime;
|
import java.time.ZonedDateTime;
|
||||||
import java.util.*;
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public class OlapQueryService {
|
public class OlapQueryService {
|
||||||
private final Pool pool;
|
private final Pool pool;
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ import io.vertx.sqlclient.Row;
|
|||||||
import io.vertx.sqlclient.Tuple;
|
import io.vertx.sqlclient.Tuple;
|
||||||
import org.mindrot.jbcrypt.BCrypt;
|
import org.mindrot.jbcrypt.BCrypt;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public class UserService {
|
public class UserService {
|
||||||
private final Pool pool;
|
private final Pool pool;
|
||||||
|
|||||||
Reference in New Issue
Block a user