Skip to content

Commit

Permalink
Ignore result of get_interface_names_by_addr
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Feb 8, 2024
1 parent 11315e0 commit 6221d69
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions io/zenoh-links/zenoh-link-tcp/src/unicast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,28 +146,28 @@ impl LinkUnicastTrait for LinkUnicastTcp {

#[inline(always)]
fn get_interface_names(&self) -> Vec<String> {
match zenoh_util::net::get_interface_names_by_addr(self.src_addr.ip()) {
Ok(interfaces) => {
/*
log::trace!(
"get_interface_names for {:?}: {:?}",
self.src_addr.ip(),
interfaces
);
*/
interfaces
}
Err(e) => {
/*
log::debug!(
"get_interface_names for {:?} failed: {:?}",
self.src_addr.ip(),
e
);
*/
vec![]
}
}
zenoh_util::net::get_interface_names_by_addr(self.src_addr.ip()).ok();
/*
match zenoh_util::net::get_interface_names_by_addr(self.src_addr.ip()) {
Ok(interfaces) => {
log::trace!(
"get_interface_names for {:?}: {:?}",
self.src_addr.ip(),
interfaces
);
interfaces
}
Err(e) => {
log::debug!(
"get_interface_names for {:?} failed: {:?}",
self.src_addr.ip(),
e
);
vec![]
}
}
*/
vec![]
}

#[inline(always)]
Expand Down

0 comments on commit 6221d69

Please sign in to comment.