Construct LIVE_PEER_DURATION from other timeout and interval constants
Use constants::HEARTBEAT_INTERVAL in our ping generator, add a test to check that LIVE_PEER_DURATION
is consistent with the other constants.
@@ -217,7 +217,7 @@ where
let mut server_tx = server_tx;
- let mut interval_stream = Interval::new_interval(Duration::from_secs(60));
+ let mut interval_stream = Interval::new_interval(constants::HEARTBEAT_INTERVAL);
loop {
interval_stream.next().await;
