Skip to content

Commit c565dc0

Browse files
committed
fmt
1 parent be7c5b0 commit c565dc0

File tree

2 files changed

+11
-5
lines changed
  • content-discovery

2 files changed

+11
-5
lines changed

content-discovery/iroh-mainline-content-discovery/src/client.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ use iroh::{
2020
};
2121
use iroh_blobs::HashAndFormat;
2222

23-
use crate::{protocol::{
24-
AnnounceKind, Query, QueryResponse, Request, Response, SignedAnnounce, ALPN, REQUEST_SIZE_LIMIT,
25-
}, tls_utils};
23+
use crate::{
24+
protocol::{
25+
AnnounceKind, Query, QueryResponse, Request, Response, SignedAnnounce, ALPN,
26+
REQUEST_SIZE_LIMIT,
27+
},
28+
tls_utils,
29+
};
2630

2731
/// Announce to a tracker.
2832
///
@@ -254,7 +258,8 @@ pub fn create_quinn_client(
254258
keylog: bool,
255259
) -> anyhow::Result<quinn::Endpoint> {
256260
let secret_key = iroh::SecretKey::generate(rand::thread_rng());
257-
let tls_client_config = tls_utils::make_client_config(&secret_key, None, alpn_protocols, keylog)?;
261+
let tls_client_config =
262+
tls_utils::make_client_config(&secret_key, None, alpn_protocols, keylog)?;
258263
let mut client_config = quinn::ClientConfig::new(Arc::new(tls_client_config));
259264
let mut endpoint = quinn::Endpoint::client(bind_addr)?;
260265
let mut transport_config = quinn::TransportConfig::default();

content-discovery/iroh-mainline-tracker/src/tracker.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ use iroh_mainline_content_discovery::{
1717
protocol::{
1818
AbsoluteTime, Announce, AnnounceKind, Query, QueryResponse, Request, Response,
1919
SignedAnnounce, REQUEST_SIZE_LIMIT,
20-
}, tls_utils, to_infohash
20+
},
21+
tls_utils, to_infohash,
2122
};
2223
use rand::Rng;
2324
use redb::{ReadableTable, RedbValue};

0 commit comments

Comments
 (0)