Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Update watcher.rs (#2559)
Browse files Browse the repository at this point in the history
Add a wake_by_ref
  • Loading branch information
prestwich authored Aug 15, 2023
1 parent eb9d27d commit fa30177
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ethers-providers/src/stream/watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ where
// for new logs
FilterWatcherState::NextItem(iter) => {
if let item @ Some(_) = iter.next() {
cx.waker().wake_by_ref();
return Poll::Ready(item)
}
FilterWatcherState::WaitForInterval
Expand Down

0 comments on commit fa30177

Please sign in to comment.