Skip to content

Commit 40f5387

Browse files
committed
chore: fmt & clippy
1 parent be4fd78 commit 40f5387

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

iroh-net/src/discovery/dns.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ impl DnsDiscovery {
4040
}
4141

4242
impl Discovery for DnsDiscovery {
43-
fn resolve<'a>(
44-
&'a self,
43+
fn resolve(
44+
&self,
4545
_ep: MagicEndpoint,
4646
node_id: NodeId,
47-
) -> Option<BoxStream<'a, Result<DiscoveryItem>>> {
47+
) -> Option<BoxStream<'_, Result<DiscoveryItem>>> {
4848
let fut = async move {
4949
let node_addr = dns::node_info::lookup_by_id(&node_id, &self.node_origin).await?;
5050
Ok(DiscoveryItem {

iroh-net/src/discovery/pkarr_relay_publish.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! A discovery service which publishes node information to a [Pkarr] relay.
22
//!
33
//! This service only implements the [`Discovery::publish`] method and does not provide discovery.
4-
//! It encodes the node information into a DNS packet in the format resolvable by the
4+
//! It encodes the node information into a DNS packet in the format resolvable by the
55
//! [`super::dns::DnsDiscovery`], which means a single _iroh_node TXT record, under the z32 encoded
66
//! node id as origin domain.
77
//!

iroh/src/node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ use iroh_bytes::{protocol::Closed, provider::AddProgress, BlobFormat, Hash, Hash
3434
use iroh_gossip::net::{Gossip, GOSSIP_ALPN};
3535
use iroh_io::AsyncSliceReader;
3636
use iroh_net::derp::DerpUrl;
37-
use iroh_net::magic_endpoint::get_alpn;
3837
use iroh_net::discovery::Discovery;
38+
use iroh_net::magic_endpoint::get_alpn;
3939
use iroh_net::magicsock::LocalEndpointsStream;
4040
use iroh_net::util::AbortingJoinHandle;
4141
use iroh_net::{

0 commit comments

Comments
 (0)