aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/route.rs3
1 files changed, 3 insertions, 0 deletions
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)]