use tower::Layer;
#[derive(Clone, Default)]
pub(crate) struct ContextLayer;
impl<S> Layer<S> for ContextLayer {
type Service = ContextService<S>;
fn layer(&self, inner: S) -> Self::Service {
ContextService { inner }
}
}
#[derive(Clone)]
pub(crate) struct ContextService<S> {
pub(crate) inner: S,
}