diff options
| author | Fuwn <[email protected]> | 2023-04-06 01:53:22 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-04-06 01:53:22 -0700 |
| commit | 9235be2eedc2c4f3a78cb704b0a107f33607e530 (patch) | |
| tree | fc927ec6d5a58d2e995cf6ff80ae2804a2265531 /src/modules/uptime.rs | |
| parent | deps(windmark): bump 0.2.5 -> 0.3.1 (diff) | |
| download | locus-9235be2eedc2c4f3a78cb704b0a107f33607e530.tar.xz locus-9235be2eedc2c4f3a78cb704b0a107f33607e530.zip | |
feat: native async reqwest calls
Diffstat (limited to 'src/modules/uptime.rs')
| -rw-r--r-- | src/modules/uptime.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/uptime.rs b/src/modules/uptime.rs index 9b3d2b5..67161c5 100644 --- a/src/modules/uptime.rs +++ b/src/modules/uptime.rs @@ -29,7 +29,7 @@ pub fn module(router: &mut windmark::Router) { "/uptime", "The uptime of Locus (A.K.A., The Locus Epoch). (\\?[s|ms|mu|ns]?)?", move |context| { - let response = windmark::utilities::queries_from_url(context.url) + let response = windmark::utilities::queries_from_url(&context.url) .get("unit") .map_or_else( || UPTIME.elapsed().as_nanos().to_string(), |