diff options
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(), |