Fix lifetime mismatch in 'juniper_subscriptions' crate

This commit is contained in:
tyranron 2020-06-23 13:31:33 +03:00
parent f19d498254
commit 3cd4cbb0b8
No known key found for this signature in database
GPG key ID: 762E144FB230A4F0

View file

@ -188,7 +188,7 @@ where
}
let stream = futures::stream::poll_fn(
move |mut ctx| -> Poll<Option<GraphQLResponse<'static, S>>> {
move |mut ctx| -> Poll<Option<GraphQLResponse<'a, S>>> {
let mut obj_iterator = object.iter_mut();
// Due to having to modify `ready_vec` contents (by-move pattern)