Skip to content

Commit

Permalink
do not require Future to be sync
Browse files Browse the repository at this point in the history
  • Loading branch information
GlenDC committed Sep 16, 2024
1 parent 51ad98b commit 685cd66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rama-core/src/layer/get_extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ where
impl<T, Fut, F> GetExtensionLayer<T, Fut, F>
where
F: FnOnce(T) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = ()> + Send + Sync + 'static,
Fut: Future<Output = ()> + Send + 'static,
{
/// Create a new [`GetExtensionLayer`].
pub const fn new(callback: F) -> Self {
Expand Down Expand Up @@ -108,7 +108,7 @@ impl<S, T, Fut, F> GetExtension<S, T, Fut, F> {
pub const fn new(inner: S, callback: F) -> Self
where
F: FnOnce(T) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = ()> + Send + Sync + 'static,
Fut: Future<Output = ()> + Send + 'static,
{
Self {
inner,
Expand All @@ -127,7 +127,7 @@ where
S: Service<State, Request>,
T: Clone + Send + Sync + 'static,
F: FnOnce(T) -> Fut + Clone + Send + Sync + 'static,
Fut: Future<Output = ()> + Send + Sync + 'static,
Fut: Future<Output = ()> + Send + 'static,
{
type Response = S::Response;
type Error = S::Error;
Expand Down

0 comments on commit 685cd66

Please sign in to comment.