add more debug info for route (#155)

1. use info log for sync_route_info
2. allow dump route info with cli tool.
3. dump route info every 60s
This commit is contained in:
Sijie.Sun
2024-07-07 15:40:46 +08:00
committed by GitHub
parent 7cfa850d4c
commit 513e4cacc9
6 changed files with 178 additions and 110 deletions

View File

@@ -78,6 +78,10 @@ pub trait Route {
}
async fn set_route_cost_fn(&self, _cost_fn: RouteCostCalculator) {}
async fn dump(&self) -> String {
"this route implementation does not support dump".to_string()
}
}
pub type ArcRoute = Arc<Box<dyn Route + Send + Sync>>;