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.
This commit is contained in:
Max Inden
2022-12-15 16:42:22 +01:00
committed by GitHub
parent c1e68b75c0
commit 856e7516ef

View File

@ -32,7 +32,7 @@ pub mod async_std;
pub mod tokio; pub mod tokio;
/// Size of the buffer for reading data 0x10000. /// 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; const RECEIVE_BUFFER_SIZE: usize = 65536;
/// Provider for non-blocking receiving and sending on a [`std::net::UdpSocket`] /// Provider for non-blocking receiving and sending on a [`std::net::UdpSocket`]