Removed useless lines

This commit is contained in:
Piyush मिश्रः 2023-06-25 21:54:57 +05:30
parent 5b62442779
commit c518e8cf91
1 changed files with 0 additions and 6 deletions

View File

@ -44,7 +44,6 @@ pub struct WsSansad {
isthiti: Isthiti,
addr: Option<Addr<Self>>,
hb: Instant,
special_hb: Instant,
}
#[derive(Debug)]
@ -81,10 +80,6 @@ impl StreamHandler<Result<ws::Message, ws::ProtocolError>> for WsSansad {
self.hb = Instant::now();
}
Ok(ws::Message::Text(msg)) => {
self.special_hb = Instant::now();
// tokio::runtime::Runtime::new()
// .unwrap()
// .block_on(self.parse_text_handle(msg.to_string()));
futures::executor::block_on(self.parse_text_handle(msg.to_string()));
}
Ok(ws::Message::Close(msg)) => {
@ -103,7 +98,6 @@ impl WsSansad {
isthiti: Isthiti::None,
addr: None,
hb: Instant::now(),
special_hb: Instant::now(),
}
}