make possible to test, test, and fix feed cutoff

This commit is contained in:
James Wilson committed 2021-07-26 16:38:24 +01:00
1 parent 50935b29fc
commit ecf5fccaab
5 files changed
+129 -23

No files matched your search

+2 -2
View File
@@ -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()),
};