add version to rip route, reduce bandwidth (#23)
reduce bandwidth usage on route propagation
This commit is contained in:
@@ -413,7 +413,7 @@ impl PeerManager {
|
||||
peer_map.close_peer(&peer_id).await.unwrap();
|
||||
}
|
||||
|
||||
tokio::time::sleep(std::time::Duration::from_secs(10)).await;
|
||||
tokio::time::sleep(std::time::Duration::from_secs(3)).await;
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -447,4 +447,8 @@ impl PeerManager {
|
||||
pub fn get_nic_channel(&self) -> mpsc::Sender<SinkItem> {
|
||||
self.nic_channel.clone()
|
||||
}
|
||||
|
||||
pub fn get_basic_route(&self) -> Arc<BasicRoute> {
|
||||
self.basic_route.clone()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user