aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-06-14 02:23:25 -0700
committerFuwn <[email protected]>2022-06-14 02:23:25 -0700
commitb2bb313b0eeff9e8ca994c5873b2cc77ec5c0f56 (patch)
treeb39113db1c8c5d75d6764c44117a860a383394dd
parentfeat(remarks): new remark about haskell (diff)
downloadlocus-b2bb313b0eeff9e8ca994c5873b2cc77ec5c0f56.tar.xz
locus-b2bb313b0eeff9e8ca994c5873b2cc77ec5c0f56.zip
fix(uptime): trigger uptime on module attach
-rw-r--r--src/modules/uptime.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/uptime.rs b/src/modules/uptime.rs
index 0725933..51da496 100644
--- a/src/modules/uptime.rs
+++ b/src/modules/uptime.rs
@@ -23,6 +23,8 @@ use tokio::time::Instant;
static UPTIME: SyncLazy<Instant> = SyncLazy::new(Instant::now);
pub fn module(router: &mut windmark::Router) {
+ UPTIME.elapsed();
+
crate::route::track_mount(
router,
"/uptime",