mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-11-29 15:36:36 -05:00
wasm warnings
This commit is contained in:
parent
b590e3f28a
commit
11c19d1bad
10 changed files with 16 additions and 1 deletions
|
|
@ -240,6 +240,7 @@ impl BucketEntryInner {
|
|||
move |e1, e2| Self::cmp_fastest_reliable(cur_ts, e1, e2)
|
||||
}
|
||||
|
||||
#[cfg_attr(target_arch = "wasm32", allow(dead_code))]
|
||||
pub fn clear_signed_node_info(&mut self, routing_domain: RoutingDomain) {
|
||||
// Get the correct signed_node_info for the chosen routing domain
|
||||
let opt_current_sni = match routing_domain {
|
||||
|
|
|
|||
|
|
@ -461,6 +461,7 @@ impl RoutingTable {
|
|||
}
|
||||
|
||||
/// Set up the local network routing domain with our local routing table configuration
|
||||
#[cfg_attr(target_arch = "wasm32", allow(dead_code))]
|
||||
pub fn configure_local_network_routing_domain(&self, local_networks: Vec<(IpAddr, IpAddr)>) {
|
||||
log_net!(debug "configure_local_network_routing_domain: {:#?}", local_networks);
|
||||
self.inner
|
||||
|
|
@ -501,6 +502,7 @@ impl RoutingTable {
|
|||
.all_filtered_dial_info_details(routing_domain_set, filter)
|
||||
}
|
||||
|
||||
#[cfg_attr(target_arch = "wasm32", allow(dead_code))]
|
||||
pub fn ensure_dial_info_is_valid(&self, domain: RoutingDomain, dial_info: &DialInfo) -> bool {
|
||||
self.inner
|
||||
.read()
|
||||
|
|
@ -755,6 +757,7 @@ impl RoutingTable {
|
|||
}
|
||||
|
||||
/// Makes a filter that finds nodes with a matching inbound dialinfo
|
||||
#[cfg_attr(target_arch = "wasm32", allow(dead_code))]
|
||||
pub fn make_inbound_dial_info_entry_filter<'a>(
|
||||
routing_domain: RoutingDomain,
|
||||
dial_info_filter: DialInfoFilter,
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ enum RoutingDomainChange {
|
|||
SetRelayNodeKeepalive {
|
||||
ts: Option<Timestamp>,
|
||||
},
|
||||
#[cfg_attr(target_arch = "wasm32", allow(dead_code))]
|
||||
AddDialInfoDetail {
|
||||
dial_info_detail: DialInfoDetail,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -536,6 +536,7 @@ impl Default for LocalNetworkRoutingDomainDetail {
|
|||
}
|
||||
|
||||
impl LocalNetworkRoutingDomainDetail {
|
||||
#[cfg_attr(target_arch = "wasm32", allow(dead_code))]
|
||||
pub fn set_local_networks(&mut self, mut local_networks: Vec<(IpAddr, IpAddr)>) -> bool {
|
||||
local_networks.sort();
|
||||
if local_networks == self.local_networks {
|
||||
|
|
|
|||
|
|
@ -111,6 +111,7 @@ impl RoutingTableInner {
|
|||
self.with_routing_domain(domain, |rd| rd.common().dial_info_details().clone())
|
||||
}
|
||||
|
||||
#[cfg_attr(target_arch = "wasm32", allow(dead_code))]
|
||||
pub fn first_filtered_dial_info_detail(
|
||||
&self,
|
||||
routing_domain_set: RoutingDomainSet,
|
||||
|
|
@ -323,6 +324,7 @@ impl RoutingTableInner {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(target_arch = "wasm32", allow(dead_code))]
|
||||
pub fn configure_local_network_routing_domain(
|
||||
&mut self,
|
||||
local_networks: Vec<(IpAddr, IpAddr)>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue