diff options
| author | Fuwn <[email protected]> | 2023-05-17 02:12:20 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-05-17 02:12:20 -0700 |
| commit | 0bc4ac8ba3a16aed491c3260d51406685cde2408 (patch) | |
| tree | 164df292848c8ba9197ffb1607a7fa1ddcad37ed /src/modules/router/module.rs | |
| parent | chore(tasks): simplify formatter (diff) | |
| download | locus-0bc4ac8ba3a16aed491c3260d51406685cde2408.tar.xz locus-0bc4ac8ba3a16aed491c3260d51406685cde2408.zip | |
deps(windmark): bump to 0.3.9
Diffstat (limited to 'src/modules/router/module.rs')
| -rw-r--r-- | src/modules/router/module.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/router/module.rs b/src/modules/router/module.rs index cd7c862..76083b8 100644 --- a/src/modules/router/module.rs +++ b/src/modules/router/module.rs @@ -18,7 +18,7 @@ use windmark::context::HookContext; -pub fn module(router: &mut windmark::Router) { +pub fn module(router: &mut windmark::router::Router) { router.set_pre_route_callback(move |context: HookContext| { info!( "accepted connection from {} to {}", @@ -29,7 +29,7 @@ pub fn module(router: &mut windmark::Router) { super::ticker::module(&context); }); router.set_post_route_callback({ - |context: HookContext, response: &mut windmark::Response| { + |context: HookContext, response: &mut windmark::response::Response| { info!( "closed connection from {} to {}", context.peer_address.unwrap().ip(), |