Browse Source

Fix accidental infinite self-recursion

tags/v0.3.6-rc0
Philipp Oppermann 1 year ago
parent
commit
328fd7ecf6
Failed to extract signature
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      apis/python/operator/src/lib.rs

+ 2
- 1
apis/python/operator/src/lib.rs View File

@@ -54,7 +54,8 @@ impl Stream for DelayedCleanup<EventStream> {
self: std::pin::Pin<&mut Self>,
cx: &mut std::task::Context<'_>,
) -> std::task::Poll<Option<Self::Item>> {
self.get_mut().poll_next_unpin(cx)
let mut inner: std::sync::MutexGuard<'_, EventStream> = self.get_mut().get_mut();
inner.poll_next_unpin(cx)
}
}



Loading…
Cancel
Save