Skip to content

Commit d9d6f7e

Browse files
committed
fixup
1 parent cdae14f commit d9d6f7e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

iroh-relay/src/node_info.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,9 @@ use std::{
4141
};
4242

4343
use anyhow::{anyhow, Result};
44-
#[cfg(not(wasm_browser))]
4544
use iroh_base::{NodeAddr, NodeId, RelayUrl, SecretKey};
46-
#[cfg(not(wasm_browser))]
4745
use url::Url;
4846

49-
#[cfg(not(wasm_browser))]
50-
5147
/// The DNS name for the iroh TXT record.
5248
pub const IROH_TXT_NAME: &str = "_iroh";
5349

@@ -560,7 +556,7 @@ pub(crate) fn ensure_iroh_txt_label(name: String) -> String {
560556
if parts.next() == Some(IROH_TXT_NAME) {
561557
name
562558
} else {
563-
[IROH_TXT_NAME, ".", &name].join(".")
559+
format!("{}.{}", IROH_TXT_NAME, name)
564560
}
565561
}
566562

0 commit comments

Comments
 (0)