From 78d333b3be982312e44f8d1f0f17a79b0b1708dc Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 22 Apr 2022 00:44:06 -0700 Subject: refactor(route): up cache rate for debug builds --- src/route.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/route.rs b/src/route.rs index ed7b34c..e3d926f 100644 --- a/src/route.rs +++ b/src/route.rs @@ -22,6 +22,9 @@ use tokio::time::Instant; use crate::ROUTES; +#[cfg(debug_assertions)] +pub const CACHE_RATE: u64 = 1; +#[cfg(not(debug_assertions))] pub const CACHE_RATE: u64 = 60 * 5; #[derive(Debug)] -- cgit v1.2.3