diff options
| author | Fuwn <[email protected]> | 2022-06-14 02:23:25 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-06-14 02:23:25 -0700 |
| commit | b2bb313b0eeff9e8ca994c5873b2cc77ec5c0f56 (patch) | |
| tree | b39113db1c8c5d75d6764c44117a860a383394dd /src/modules/uptime.rs | |
| parent | feat(remarks): new remark about haskell (diff) | |
| download | locus-b2bb313b0eeff9e8ca994c5873b2cc77ec5c0f56.tar.xz locus-b2bb313b0eeff9e8ca994c5873b2cc77ec5c0f56.zip | |
fix(uptime): trigger uptime on module attach
Diffstat (limited to 'src/modules/uptime.rs')
| -rw-r--r-- | src/modules/uptime.rs | 2 |
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", |