aboutsummaryrefslogtreecommitdiff
path: root/src/modules/headers.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-22 12:54:39 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-22 12:54:39 +0200
commit4da8fe84c07e3f9e83f9b769f1670f4d52466001 (patch)
treebf4384034771001b136207c4df386daf99dac7fa /src/modules/headers.rs
parent1451273fa59d14070e525562ec466a21128fa671 (diff)
downloadgnix-4da8fe84c07e3f9e83f9b769f1670f4d52466001.tar
gnix-4da8fe84c07e3f9e83f9b769f1670f4d52466001.tar.bz2
gnix-4da8fe84c07e3f9e83f9b769f1670f4d52466001.tar.zst
add switch module
Diffstat (limited to 'src/modules/headers.rs')
-rw-r--r--src/modules/headers.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/headers.rs b/src/modules/headers.rs
index b1e452e..ad4595a 100644
--- a/src/modules/headers.rs
+++ b/src/modules/headers.rs
@@ -1,4 +1,4 @@
-use super::{Node, NodeKind, NodeResponse};
+use super::{Node, NodeContext, NodeKind, NodeRequest, NodeResponse};
use crate::{config::DynNode, error::ServiceError};
use anyhow::Result;
use futures::Future;
@@ -29,8 +29,8 @@ impl NodeKind for HeadersKind {
impl Node for Headers {
fn handle<'a>(
&'a self,
- context: &'a mut super::NodeContext,
- request: super::NodeRequest,
+ context: &'a mut NodeContext,
+ request: NodeRequest,
) -> Pin<Box<dyn Future<Output = Result<NodeResponse, ServiceError>> + Send + Sync + 'a>> {
Box::pin(async move {
let mut resp = self.inner.handle(context, request).await?;