Change periodic route announcement to 5 minutes

More delay between periodic announcements. This is mainly to observe the
effect on a larget scale in preparation for #253.

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet
2024-05-27 15:11:38 +02:00
parent ff4712001e
commit accc8cefd6
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
route to it is lost as a result of the next-hop dying, or and update coming in
which causes no routes to be feasible anymore.
- Switched from the log to the tracing ecosystem.
- Only do the periodic route announcement every 5 minutes instead of every minute.
### Fixed
+1 -1
View File
@@ -33,7 +33,7 @@ const HELLO_INTERVAL: u64 = 20;
const IHU_INTERVAL: Duration = Duration::from_secs(HELLO_INTERVAL * 3);
/// Max time used in UPDATE packets. For local (static) routes this is the timeout they are
/// advertised with.
const UPDATE_INTERVAL: Duration = Duration::from_secs(HELLO_INTERVAL * 3);
const UPDATE_INTERVAL: Duration = Duration::from_secs(HELLO_INTERVAL * 3 * 5);
/// Time between route table dumps to peers.
const ROUTE_PROPAGATION_INTERVAL: Duration = UPDATE_INTERVAL;
/// Amount of seconds that can elapse before we consider a [`Peer`] as dead from the routers POV.