diff options
| author | Fuwn <[email protected]> | 2022-04-17 13:23:57 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-04-17 13:23:57 -0700 |
| commit | 47397a43e274987beb4d70ddeb4f5fb4f83ebeba (patch) | |
| tree | ff37988156f71bf835b91a2e6b39a06a62d570b0 /src/route.rs | |
| parent | feat: implement cacher (diff) | |
| download | locus-47397a43e274987beb4d70ddeb4f5fb4f83ebeba.tar.xz locus-47397a43e274987beb4d70ddeb4f5fb4f83ebeba.zip | |
feat: cache static pages
Diffstat (limited to 'src/route.rs')
| -rw-r--r-- | src/route.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/route.rs b/src/route.rs index 2da2cbb..dce4145 100644 --- a/src/route.rs +++ b/src/route.rs @@ -57,7 +57,6 @@ pub fn track_mount( router.mount(route, handler); } -#[allow(unused)] pub fn cache(context: &windmark::returnable::RouteContext<'_>, response: &str) { static LAST_CACHED: SyncLazy<Mutex<Instant>> = SyncLazy::new(|| Mutex::new(Instant::now())); |