Skip to content

Commit 3da9930

Browse files
committed
Remove some node_addr calls
1 parent 75153a1 commit 3da9930

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async fn main() -> anyhow::Result<()> {
4747
let tag = store.add_slice(b"Hello world").await?;
4848
4949
let _ = endpoint.online().await;
50-
let addr = endpoint.node_addr();
50+
let addr = endpoint.addr();
5151
let ticket = BlobTicket::new(addr, tag.hash, tag.format);
5252
5353
// build the router

src/net_protocol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! // create an iroh endpoint
1919
//! let endpoint = Endpoint::bind().await?;
2020
//! endpoint.online().await;
21-
//! let addr = endpoint.node_addr();
21+
//! let addr = endpoint.addr();
2222
//!
2323
//! // create a blobs protocol handler
2424
//! let blobs = BlobsProtocol::new(&store, None);

0 commit comments

Comments
 (0)