From 1b4a5a6b2e8b7a816bceccb1fbd520306b8feff2 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Mon, 17 Jul 2023 23:49:54 +0200 Subject: [PATCH] Reduce cache size --- src/bots_manager/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bots_manager/mod.rs b/src/bots_manager/mod.rs index d02bbcc..6a21251 100644 --- a/src/bots_manager/mod.rs +++ b/src/bots_manager/mod.rs @@ -51,15 +51,15 @@ impl BotsManager { app_state: AppState { user_activity_cache: Cache::builder() .time_to_live(Duration::from_secs(5 * 60)) - .max_capacity(16384) + .max_capacity(2048) .build(), user_langs_cache: Cache::builder() .time_to_live(Duration::from_secs(5 * 60)) - .max_capacity(16384) + .max_capacity(2048) .build(), chat_donation_notifications_cache: Cache::builder() .time_to_live(Duration::from_secs(24 * 60 * 60)) - .max_capacity(32768) + .max_capacity(2048) .build(), }, next_port: 8000,