1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-06 06:02:40 +03:00

Save the session activity in the database

This commit is contained in:
Quentin Gliech
2023-09-19 19:02:59 +02:00
parent 407c78a7be
commit b85655b944
14 changed files with 352 additions and 5 deletions

View File

@@ -141,7 +141,9 @@ impl Options {
compat_token_ttl: config.experimental.compat_token_ttl,
};
let activity_tracker = ActivityTracker::new(pool.clone(), Duration::from_secs(60 * 5));
// Initialize the activity tracker
// Activity is flushed every minute
let activity_tracker = ActivityTracker::new(pool.clone(), Duration::from_secs(60));
// Explicitly the config to properly zeroize secret keys
drop(config);