Skip to content

Commit bc6e9e3

Browse files
ramfox“ramfox”
andauthored
feat(iroh): re-export n0_watcher::Watcher trait (#3356)
## Description Re-export the `n0_watcher::Watcher` so it is easier for our users to use heavily relied on methods like `Endpoint::node_addr`. This becomes especially painful when you are working on any protocols using iroh. ## Notes & open questions Should this be exported from a different module? `iroh::endpoint::Watcher`? ## Change checklist - [x] Self-review. --------- Co-authored-by: “ramfox” <“kasey@n0.computer”>
1 parent dcbebe9 commit bc6e9e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

iroh/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ pub use iroh_base::{
275275
KeyParsingError, NodeAddr, NodeId, PublicKey, RelayUrl, RelayUrlParseError, SecretKey,
276276
};
277277
pub use iroh_relay::{http::Protocol as RelayProtocol, node_info, RelayMap, RelayNode};
278+
pub use n0_watcher::Watcher;
278279

279280
#[cfg(any(test, feature = "test-utils"))]
280281
pub mod test_utils;

0 commit comments

Comments
 (0)