mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-25 15:51:34 +00:00
Add libp2p-mdns (#590)
* Add libp2p-mdns * Fix win32 * Make compatible with Rust 1.29 * Remove mDNS on esmcripten * Fix concerns * More concern * Use append_u16 * Make decode_character_string return a Cow * Add TODO * Don't send queries from 5353 * Fix flags * More flags fix * More concerns * Fix flags * Fix removed env_logger
This commit is contained in:
@ -133,6 +133,20 @@ impl From<PublicKey> for PeerId {
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq<multihash::Multihash> for PeerId {
|
||||
#[inline]
|
||||
fn eq(&self, other: &multihash::Multihash) -> bool {
|
||||
&self.multihash == other
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq<PeerId> for multihash::Multihash {
|
||||
#[inline]
|
||||
fn eq(&self, other: &PeerId) -> bool {
|
||||
self == &other.multihash
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<multihash::Multihash> for PeerId {
|
||||
#[inline]
|
||||
fn into(self) -> multihash::Multihash {
|
||||
|
Reference in New Issue
Block a user