mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-11-10 09:17:10 +00:00
use ws_client in shard, too, and make it better at handling core disconnecting
This commit is contained in:
16 files changed
+138
-190
No files matched your search
@@ -254,9 +254,7 @@ where
|
||||
ToFeedWebsocket::Bytes(bytes) => bytes
|
||||
};
|
||||
|
||||
log::debug!("Message to feed: {}", std::str::from_utf8(&bytes).unwrap_or("INVALID UTF8"));
|
||||
|
||||
if let Err(e) = websocket.send(ws::Message::binary(bytes)).await {
|
||||
if let Err(e) = websocket.send(ws::Message::binary(&*bytes)).await {
|
||||
log::warn!("Closing feed websocket due to error: {}", e);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user