fix: micro fixes

This commit is contained in:
2026-05-08 14:03:28 +03:00
parent 1531215b43
commit 8f86dc5831
5 changed files with 5 additions and 5 deletions

View File

@@ -104,4 +104,3 @@ public class AppConfig {
return json().encode(); return json().encode();
} }
} }

View File

@@ -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());
} }

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;