api work
This commit is contained in:
		@@ -2,28 +2,6 @@ use super::*;
 | 
			
		||||
use routing_table::tasks::bootstrap::BOOTSTRAP_TXT_VERSION_0;
 | 
			
		||||
 | 
			
		||||
impl RoutingTable {
 | 
			
		||||
    pub(crate) fn debug_info_nodeinfo(&self) -> String {
 | 
			
		||||
        let mut out = String::new();
 | 
			
		||||
        let inner = self.inner.read();
 | 
			
		||||
        out += "Routing Table Info:\n";
 | 
			
		||||
 | 
			
		||||
        out += &format!("   Node Ids: {}\n", self.unlocked_inner.node_ids());
 | 
			
		||||
        out += &format!(
 | 
			
		||||
            "   Self Latency Stats Accounting: {:#?}\n\n",
 | 
			
		||||
            inner.self_latency_stats_accounting
 | 
			
		||||
        );
 | 
			
		||||
        out += &format!(
 | 
			
		||||
            "   Self Transfer Stats Accounting: {:#?}\n\n",
 | 
			
		||||
            inner.self_transfer_stats_accounting
 | 
			
		||||
        );
 | 
			
		||||
        out += &format!(
 | 
			
		||||
            "   Self Transfer Stats: {:#?}\n\n",
 | 
			
		||||
            inner.self_transfer_stats
 | 
			
		||||
        );
 | 
			
		||||
 | 
			
		||||
        out
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    pub(crate) async fn debug_info_txtrecord(&self) -> String {
 | 
			
		||||
        let mut out = String::new();
 | 
			
		||||
 | 
			
		||||
@@ -71,14 +49,34 @@ impl RoutingTable {
 | 
			
		||||
                node_ids,
 | 
			
		||||
                some_hostname.unwrap()
 | 
			
		||||
            );
 | 
			
		||||
            for short_url in short_urls {
 | 
			
		||||
                out += &format!(",{}", short_url);
 | 
			
		||||
            }
 | 
			
		||||
            out += &short_urls.join(",");
 | 
			
		||||
            out += "\n";
 | 
			
		||||
        }
 | 
			
		||||
        out
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    pub(crate) fn debug_info_nodeinfo(&self) -> String {
 | 
			
		||||
        let mut out = String::new();
 | 
			
		||||
        let inner = self.inner.read();
 | 
			
		||||
        out += "Routing Table Info:\n";
 | 
			
		||||
 | 
			
		||||
        out += &format!("   Node Ids: {}\n", self.unlocked_inner.node_ids());
 | 
			
		||||
        out += &format!(
 | 
			
		||||
            "   Self Latency Stats Accounting: {:#?}\n\n",
 | 
			
		||||
            inner.self_latency_stats_accounting
 | 
			
		||||
        );
 | 
			
		||||
        out += &format!(
 | 
			
		||||
            "   Self Transfer Stats Accounting: {:#?}\n\n",
 | 
			
		||||
            inner.self_transfer_stats_accounting
 | 
			
		||||
        );
 | 
			
		||||
        out += &format!(
 | 
			
		||||
            "   Self Transfer Stats: {:#?}\n\n",
 | 
			
		||||
            inner.self_transfer_stats
 | 
			
		||||
        );
 | 
			
		||||
 | 
			
		||||
        out
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    pub(crate) fn debug_info_dialinfo(&self) -> String {
 | 
			
		||||
        let ldis = self.dial_info_details(RoutingDomain::LocalNetwork);
 | 
			
		||||
        let gdis = self.dial_info_details(RoutingDomain::PublicInternet);
 | 
			
		||||
 
 | 
			
		||||
@@ -115,7 +115,7 @@ impl RouteSpecStore {
 | 
			
		||||
            dr
 | 
			
		||||
        };
 | 
			
		||||
 | 
			
		||||
        let update = VeilidUpdate::Route(VeilidStateRoute {
 | 
			
		||||
        let update = VeilidUpdate::RouteChange(VeilidRouteChange {
 | 
			
		||||
            dead_routes,
 | 
			
		||||
            dead_remote_routes,
 | 
			
		||||
        });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user