refactor get_contact_method
This commit is contained in:
@@ -341,7 +341,9 @@ impl VeilidAPI {
|
||||
nr.merge_filter(NodeRefFilter::new().with_routing_domain(routing_domain))
|
||||
}
|
||||
|
||||
let cm = network_manager.get_contact_method(nr);
|
||||
let cm = routing_table
|
||||
.get_node_contact_method(nr)
|
||||
.map_err(VeilidAPIError::internal)?;
|
||||
|
||||
Ok(format!("{:#?}", cm))
|
||||
}
|
||||
|
@@ -926,7 +926,7 @@ impl FromStr for SocketAddress {
|
||||
|
||||
//////////////////////////////////////////////////////////////////
|
||||
|
||||
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord)]
|
||||
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
|
||||
pub struct DialInfoFilter {
|
||||
pub protocol_type_set: ProtocolTypeSet,
|
||||
pub address_type_set: AddressTypeSet,
|
||||
|
Reference in New Issue
Block a user