mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 01:01:34 +00:00
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:
@ -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`]
|
||||
|
Reference in New Issue
Block a user