Skip to content

Commit

Permalink
fix: allow !Send errors in Actix extract() (#3189)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj authored Nov 4, 2024
1 parent 2ef1723 commit d589455
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions integrations/actix/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,10 @@ where
ServerFnError::new("HttpRequest should have been provided via context")
})?;

T::extract(&req)
.await
.map_err(|e| ServerFnError::ServerError(e.to_string()))
SendWrapper::new(async move {
T::extract(&req)
.await
.map_err(|e| ServerFnError::ServerError(e.to_string()))
})
.await
}

0 comments on commit d589455

Please sign in to comment.