You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While updating the Rocket integration for 0.5.0-rc.1, I found that it is not possible to use async_graphql::http::receive_batch_body since it requires 'static lifetime for the data parameter and the recent Rocket version changed to require the lifetime of the body data to be the same with the lifetime of the request.
However, removing 'static requirement from both receive_batch_body and receive_batch_multipart simply fixed all the issues without any errors. Is there any specific reason that data parameter of receive_batch_multipart should be marked as 'static? Otherwise, I'll just make a pull request with the 'static requirement removed.
The text was updated successfully, but these errors were encountered:
While updating the Rocket integration for
0.5.0-rc.1
, I found that it is not possible to useasync_graphql::http::receive_batch_body
since it requires'static
lifetime for the data parameter and the recent Rocket version changed to require the lifetime of the body data to be the same with the lifetime of the request.However, removing
'static
requirement from bothreceive_batch_body
andreceive_batch_multipart
simply fixed all the issues without any errors. Is there any specific reason thatdata
parameter ofreceive_batch_multipart
should be marked as'static
? Otherwise, I'll just make a pull request with the'static
requirement removed.The text was updated successfully, but these errors were encountered: