mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-13 19:41:02 +00:00
make possible to test, test, and fix feed cutoff
This commit is contained in:
@@ -67,8 +67,8 @@ impl Connection {
|
||||
};
|
||||
|
||||
let msg = match message_data {
|
||||
soketto::Data::Text(_) => Ok(RecvMessage::Binary(data)),
|
||||
soketto::Data::Binary(_) => String::from_utf8(data)
|
||||
soketto::Data::Binary(_) => Ok(RecvMessage::Binary(data)),
|
||||
soketto::Data::Text(_) => String::from_utf8(data)
|
||||
.map(|s| RecvMessage::Text(s))
|
||||
.map_err(|e| e.into()),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user