Skip to content

Commit

Permalink
quinn: UdpPoller::new() is only called if a runtime is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
djc authored and Ralith committed May 3, 2024
1 parent faf7dbc commit 74c0358
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions quinn/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ impl<MakeFut, Fut> UdpPollHelper<MakeFut, Fut> {
/// Construct a [`UdpPoller`] that calls `make_fut` to get the future to poll, storing it until
/// it yields [`Poll::Ready`], then creating a new one on the next
/// [`poll_writable`](UdpPoller::poll_writable)
#[cfg(any(
feature = "runtime-async-std",
feature = "runtime-smol",
feature = "runtime-tokio"
))]
fn new(make_fut: MakeFut) -> Self {
Self {
make_fut,
Expand Down

0 comments on commit 74c0358

Please sign in to comment.