From 4ae433ef2aff1a72fe458e99eb5dd6d92f0d216f Mon Sep 17 00:00:00 2001 From: katsumi143 <32640219+katsumi143@users.noreply.github.com> Date: Fri, 29 Mar 2024 01:35:08 +1000 Subject: [PATCH] i forgor to un-nightly --- mellow/src/cache/mod.rs | 6 +++--- mellow/src/main.rs | 1 - rust-toolchain.toml | 2 -- 3 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 rust-toolchain.toml diff --git a/mellow/src/cache/mod.rs b/mellow/src/cache/mod.rs index 6252ca7..c7de273 100644 --- a/mellow/src/cache/mod.rs +++ b/mellow/src/cache/mod.rs @@ -10,13 +10,13 @@ use crate::{ pub static CACHES: Lazy = Lazy::new(|| Caches { discord_guilds: CacheBuilder::new(32) - .time_to_live(Duration::from_hours(1)) + .time_to_live(Duration::from_secs(3600)) .build(), event_responses: CacheBuilder::new(32) - .time_to_live(Duration::from_hours(1)) + .time_to_live(Duration::from_secs(3600)) .build(), patreon_user_identities: CacheBuilder::new(64) - .time_to_live(Duration::from_mins(5)) + .time_to_live(Duration::from_secs(300)) .build() }); diff --git a/mellow/src/main.rs b/mellow/src/main.rs index 471d883..c2571fd 100644 --- a/mellow/src/main.rs +++ b/mellow/src/main.rs @@ -1,4 +1,3 @@ -#![feature(duration_constructors)] use simple_logger::SimpleLogger; use interaction::InteractionPayload; diff --git a/rust-toolchain.toml b/rust-toolchain.toml deleted file mode 100644 index 271800c..0000000 --- a/rust-toolchain.toml +++ /dev/null @@ -1,2 +0,0 @@ -[toolchain] -channel = "nightly" \ No newline at end of file