mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-12 07:41:09 +00:00
Tidy up stale connections. (#406)
* If messageId changes and network ID doesn't, remove 'old' message_id * Boot nodes/connection when no recent messages received for it * Separate task needed for soketto recv to avoid cancel-safety issues with new interval * Wee tidy up * cargo fmt * Add some logging around node adding/removing * Another log info msg * a bit of tidy up * bump stale node timeout to 60s
This commit is contained in:
@@ -274,6 +274,7 @@ impl<'a> StateChain<'a> {
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
use common::node_types::NetworkId;
|
||||
|
||||
fn node(name: &str, chain: &str) -> NodeDetails {
|
||||
NodeDetails {
|
||||
@@ -282,7 +283,7 @@ mod test {
|
||||
implementation: "Bar".into(),
|
||||
version: "0.1".into(),
|
||||
validator: None,
|
||||
network_id: None,
|
||||
network_id: NetworkId::new(),
|
||||
startup_time: None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user