mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 02:09:06 +00:00
fix peer center for latency report
This commit is contained in:
@@ -31,8 +31,11 @@ pub trait RouteInterface {
|
||||
|
||||
pub type RouteInterfaceBox = Box<dyn RouteInterface + Send + Sync>;
|
||||
|
||||
#[auto_impl::auto_impl(Box, Arc, &)]
|
||||
#[auto_impl::auto_impl(Box , &mut)]
|
||||
pub trait RouteCostCalculatorInterface: Send + Sync {
|
||||
fn begin_update(&mut self) {}
|
||||
fn end_update(&mut self) {}
|
||||
|
||||
fn calculate_cost(&self, _src: PeerId, _dst: PeerId) -> i32 {
|
||||
1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user