mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-09 20:27:06 +00:00
Fix telemetry (and a minor cleanup) (#1384)
This commit is contained in:
1 parent
42c30609d3
commit
a13fda2e83
5 files changed
+45
-33
No files matched your search
@@ -12,4 +12,4 @@ slog = "^2"
|
||||
slog-json = "^2"
|
||||
slog-async = "^2"
|
||||
slog-scope = "^4"
|
||||
ws = { git = "https://github.com/tomusdrw/ws-rs" }
|
||||
ws = { version = "^0.7", features = ["ssl"] }
|
||||
@@ -66,7 +66,7 @@ pub fn init_telemetry(config: TelemetryConfig) -> slog_scope::GlobalLoggerGuard
|
||||
|
||||
thread::spawn(move || {
|
||||
loop {
|
||||
trace!(target: "telemetry", "Connecting to Telemetry...");
|
||||
trace!(target: "telemetry", "Connecting to Telemetry... {:?}", config.url);
|
||||
let _ = ws::connect(config.url.as_str(), |out| Connection::new(out, &*out_sync, &config));
|
||||
|
||||
thread::sleep(time::Duration::from_millis(5000));
|
||||
|
||||
Reference in new issue
Block a user