From 856e7516ef68178608f408a76e5ec7de8c9cc146 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Thu, 15 Dec 2022 16:42:22 +0100 Subject: [PATCH] fix(quic): Feature flag via async-std and not async-io (#3245) Feature flag `RECEIVE_BUFFER_SIZE` via `async-std` and not `async-io` feature. --- transports/quic/src/provider.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transports/quic/src/provider.rs b/transports/quic/src/provider.rs index 02c8bad7..c38f77fd 100644 --- a/transports/quic/src/provider.rs +++ b/transports/quic/src/provider.rs @@ -32,7 +32,7 @@ pub mod async_std; pub mod tokio; /// Size of the buffer for reading data 0x10000. -#[cfg(any(feature = "async-io", feature = "tokio"))] +#[cfg(any(feature = "async-std", feature = "tokio"))] const RECEIVE_BUFFER_SIZE: usize = 65536; /// Provider for non-blocking receiving and sending on a [`std::net::UdpSocket`]