mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-14 10:31:21 +00:00
Don't poll network unnecessarily. (#1977)
* Don't poll network unnecessarily. * Fix ci. * Damn tokio. * Address review comments. * Update deps. * Don't drop packet if socket is not writable. * Increase TTL and rename to `query_interval`. * Update CHANGELOG. Co-authored-by: Roman S. Borschel <roman@parity.io>
This commit is contained in:
@ -35,12 +35,8 @@ const SERVICE_NAME: &[u8] = b"_p2p._udp.local";
|
||||
/// The meta query for looking up the `SERVICE_NAME`.
|
||||
const META_QUERY_SERVICE: &[u8] = b"_services._dns-sd._udp.local";
|
||||
|
||||
pub use crate::{
|
||||
behaviour::{Mdns, MdnsEvent},
|
||||
service::MdnsService,
|
||||
};
|
||||
pub use crate::behaviour::{Mdns, MdnsConfig, MdnsEvent};
|
||||
|
||||
mod behaviour;
|
||||
mod dns;
|
||||
|
||||
pub mod service;
|
||||
mod query;
|
||||
|
Reference in New Issue
Block a user