mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-04-29 09:08:00 +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:
@@ -657,7 +657,10 @@ async fn e2e_slow_feeds_are_disconnected() {
|
||||
let (mut raw_feed_tx, mut raw_feed_rx) = server.get_core().connect_feed_raw().await.unwrap();
|
||||
|
||||
// Subscribe the feed:
|
||||
raw_feed_tx.send_text("subscribe:Polkadot").await.unwrap();
|
||||
raw_feed_tx
|
||||
.send_text("subscribe:0x0000000000000000000000000000000000000000000000000000000000000001")
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
// Wait a little.. the feed hasn't been receiving messages so it should
|
||||
// be booted after ~a second.
|
||||
|
||||
Reference in New Issue
Block a user