diff options
| author | Fuwn <[email protected]> | 2022-04-22 00:44:06 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-04-22 00:44:06 -0700 |
| commit | 78d333b3be982312e44f8d1f0f17a79b0b1708dc (patch) | |
| tree | f286a06bb25d233c1ccc4b2f7511721f319bbdb1 /src | |
| parent | feat(search): add context to search previews (diff) | |
| download | locus-78d333b3be982312e44f8d1f0f17a79b0b1708dc.tar.xz locus-78d333b3be982312e44f8d1f0f17a79b0b1708dc.zip | |
refactor(route): up cache rate for debug builds
Diffstat (limited to 'src')
| -rw-r--r-- | src/route.rs | 3 |
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)] |