Skip to content
Snippets Groups Projects
Commit 920a6b81 authored by Gav Wood's avatar Gav Wood Committed by Arkadiy Paronyan
Browse files

Fix telemetry (#383)

* Explicit disconnect on timeout

* Fix telemetry
parent 2ece52f3
No related merge requests found
......@@ -115,9 +115,11 @@ impl TelemetryWriter {
};
drop(client);
if just_connected && !controlled_disconnect {
if just_connected {
if !controlled_disconnect {
info!("Reconnected to telemetry server: {}", self.config.url);
}
self.last_time = Some(time::Instant::now());
info!("Reconnected to telemetry server: {}", self.config.url);
(self.config.on_connect)();
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment