Skip to content

Commit 1a9c4ed

Browse files
committed
clippy and ignore sendme temp dirs
1 parent ee5e8f1 commit 1a9c4ed

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
target/
2-
*iroh-data
2+
*iroh-data
3+
*/.sendme*

iroh-gateway/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ impl Inner {
186186
async fn get_default_connection(&self) -> anyhow::Result<quinn::Connection> {
187187
let connection = self
188188
.endpoint
189-
.connect(self.default_node()?, &iroh::bytes::protocol::ALPN)
189+
.connect(self.default_node()?, iroh::bytes::protocol::ALPN)
190190
.await?;
191191
Ok(connection)
192192
}
@@ -356,7 +356,7 @@ async fn handle_ticket_request(
356356
let byte_range = parse_byte_range(req).await?;
357357
let connection = gateway
358358
.endpoint
359-
.connect(ticket.node_addr().clone(), &iroh::bytes::protocol::ALPN)
359+
.connect(ticket.node_addr().clone(), iroh::bytes::protocol::ALPN)
360360
.await?;
361361
let hash = ticket.hash();
362362
let prefix = format!("/node/{}", ticket.node_addr().node_id);

0 commit comments

Comments
 (0)