1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 18:37:41 +02:00

Add a new configuration parameter to refresh the TTL of the session even if unchanged (#233)

Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
Luca Palmieri
2022-07-03 21:18:14 +01:00
committed by GitHub
parent d09299390a
commit c2f068db66
13 changed files with 607 additions and 319 deletions

View File

@ -73,7 +73,7 @@ pub const DEFAULT_COOKIE_NAME: &str = "sid";
pub const DEFAULT_SESSION_KEY: &str = "rate-api-id";
/// Rate limiter.
#[derive(Clone, Debug)]
#[derive(Debug, Clone)]
pub struct Limiter {
client: Client,
limit: usize,