Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
divagant-martian committed May 14, 2024
1 parent c1fd2e6 commit 165d96a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion iroh-net/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ impl Endpoint {
///
/// Note that this can be used to wait for the initial home relay to be known. If the home
/// relay is known at this point, it will be the first item in the stream.
pub async fn watch_home_relay(&self) -> impl Stream<Item = RelayUrl> {
pub fn watch_home_relay(&self) -> impl Stream<Item = RelayUrl> {
self.msock.watch_home_relay()
}

Expand Down
6 changes: 4 additions & 2 deletions iroh-net/src/magicsock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3334,9 +3334,11 @@ pub(crate) mod tests {

#[tokio::test]
async fn test_watch_home_relay() {
let mut ops = Options::default();
// use an empty relay map to get full control of the changes during the test
ops.relay_map = RelayMap::empty();
let ops = Options {
relay_map: RelayMap::empty(),
..Default::default()
};
let msock = MagicSock::spawn(ops).await.unwrap();
let mut relay_stream = msock.watch_home_relay();

Expand Down

0 comments on commit 165d96a

Please sign in to comment.