aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-04-22 00:44:06 -0700
committerFuwn <[email protected]>2022-04-22 00:44:06 -0700
commit78d333b3be982312e44f8d1f0f17a79b0b1708dc (patch)
treef286a06bb25d233c1ccc4b2f7511721f319bbdb1 /src
parentfeat(search): add context to search previews (diff)
downloadlocus-78d333b3be982312e44f8d1f0f17a79b0b1708dc.tar.xz
locus-78d333b3be982312e44f8d1f0f17a79b0b1708dc.zip
refactor(route): up cache rate for debug builds
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)]