refactor(middleware): change visibility to pub (#587)

This commit is contained in:
Sanchith Hegde
2023-02-13 17:43:59 +05:30
committed by GitHub
parent a4f3abf3c6
commit 4884a24daf
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ pub(crate) mod macros;
pub mod routes; pub mod routes;
pub mod scheduler; pub mod scheduler;
mod middleware; pub mod middleware;
#[cfg(feature = "openapi")] #[cfg(feature = "openapi")]
pub mod openapi; pub mod openapi;
pub mod services; pub mod services;

View File

@ -1,5 +1,5 @@
/// Middleware to include request ID in response header. /// Middleware to include request ID in response header.
pub(crate) struct RequestId; pub struct RequestId;
impl<S, B> actix_web::dev::Transform<S, actix_web::dev::ServiceRequest> for RequestId impl<S, B> actix_web::dev::Transform<S, actix_web::dev::ServiceRequest> for RequestId
where where
@ -22,7 +22,7 @@ where
} }
} }
pub(crate) struct RequestIdMiddleware<S> { pub struct RequestIdMiddleware<S> {
service: S, service: S,
} }