Skip to content

Commit

Permalink
fix: add Send bound for tower adapter (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Millione authored Nov 29, 2022
1 parent 93b3fb5 commit 1a27d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion motore/src/service/tower_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl<S, F> Motore<S, F> {
impl<S, F, Cx, MotoreReq, TowerReq> Service<Cx, MotoreReq> for Motore<S, F>
where
S: tower::Service<TowerReq> + Clone,
for<'cx> <S as tower::Service<TowerReq>>::Future: 'cx,
for<'cx> <S as tower::Service<TowerReq>>::Future: Send + 'cx,
F: FnOnce(&mut Cx, MotoreReq) -> TowerReq + Clone,
{
type Response = S::Response;
Expand Down

0 comments on commit 1a27d68

Please sign in to comment.