warning Quiet
This commit is contained in:
@@ -16,5 +16,6 @@ pub async fn get(dev: Option<&str>) -> anyhow::Result<Vec<AddrOutput>> {
|
|||||||
address = address.set_link_index_filter(ind);
|
address = address.set_link_index_filter(ind);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
address.execute().try_next().await?;
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,12 +35,15 @@ pub async fn get_macs(
|
|||||||
macs: &[MacAddr],
|
macs: &[MacAddr],
|
||||||
) -> Result<Vec<IpNeighLine>> {
|
) -> Result<Vec<IpNeighLine>> {
|
||||||
let mut ip_set: HashSet<IpAddr> = ips.iter().map(|ip| ip.to_canonical()).collect();
|
let mut ip_set: HashSet<IpAddr> = ips.iter().map(|ip| ip.to_canonical()).collect();
|
||||||
let ip_m: HashSet<IpAddr> =
|
let ip_m: HashSet<IpAddr> = if !machine_names.is_empty() {
|
||||||
futures::future::try_join_all(machine_names.iter().map(|c| get_ips(c.as_ref())))
|
futures::future::try_join_all(machine_names.iter().map(|c| get_ips(c.as_ref())))
|
||||||
.await?
|
.await?
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.flatten()
|
.flatten()
|
||||||
.collect();
|
.collect()
|
||||||
|
} else {
|
||||||
|
Default::default()
|
||||||
|
};
|
||||||
let ip_all = if ip_set.is_empty() && ip_m.is_empty() {
|
let ip_all = if ip_set.is_empty() && ip_m.is_empty() {
|
||||||
None
|
None
|
||||||
} else if ip_set.is_empty() {
|
} else if ip_set.is_empty() {
|
||||||
|
|||||||
Reference in New Issue
Block a user