Optimize cache management
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-12-04 18:51:46 +01:00
parent 944e7dd00d
commit 3d19a0eba2
18 changed files with 85 additions and 21 deletions

View File

@@ -5,7 +5,7 @@ use std::net::IpAddr;
use actix::{Actor, AsyncContext, Context, Handler, Message};
use crate::constants::{FAIL_LOGIN_ATTEMPT_CLEANUP_INTERVAL, KEEP_FAILED_LOGIN_ATTEMPTS_FOR};
use crate::utils::time::time;
use crate::utils::time_utils::time;
#[derive(Message)]
#[rtype(result = "()")]
@@ -87,7 +87,7 @@ mod test {
use std::net::{IpAddr, Ipv4Addr};
use crate::actors::bruteforce_actor::BruteForceActor;
use crate::utils::time::time;
use crate::utils::time_utils::time;
const IP_1: IpAddr = IpAddr::V4(Ipv4Addr::new(192, 168, 1, 1));
const IP_2: IpAddr = IpAddr::V4(Ipv4Addr::new(192, 168, 1, 2));