aboutsummaryrefslogtreecommitdiff
path: root/src/modules/router
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-05-17 02:12:20 -0700
committerFuwn <[email protected]>2023-05-17 02:12:20 -0700
commit0bc4ac8ba3a16aed491c3260d51406685cde2408 (patch)
tree164df292848c8ba9197ffb1607a7fa1ddcad37ed /src/modules/router
parentchore(tasks): simplify formatter (diff)
downloadlocus-0bc4ac8ba3a16aed491c3260d51406685cde2408.tar.xz
locus-0bc4ac8ba3a16aed491c3260d51406685cde2408.zip
deps(windmark): bump to 0.3.9
Diffstat (limited to 'src/modules/router')
-rw-r--r--src/modules/router/module.rs4
-rw-r--r--src/modules/router/translate/module.rs2
2 files changed, 3 insertions, 3 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(),
diff --git a/src/modules/router/translate/module.rs b/src/modules/router/translate/module.rs
index bb1e6a4..78ab533 100644
--- a/src/modules/router/translate/module.rs
+++ b/src/modules/router/translate/module.rs
@@ -21,7 +21,7 @@ use crate::modules::router::translate::deepl::language_code_to_language_name;
pub fn module<S>(
context: &windmark::context::HookContext,
- response: &mut windmark::Response,
+ response: &mut windmark::response::Response,
language: S,
) -> Result<(), serde_json::Error>
where