mirror of https://github.com/PiyushXCoder/lupt.git
Removed useless lines
This commit is contained in:
parent
5b62442779
commit
c518e8cf91
|
|
@ -44,7 +44,6 @@ pub struct WsSansad {
|
||||||
isthiti: Isthiti,
|
isthiti: Isthiti,
|
||||||
addr: Option<Addr<Self>>,
|
addr: Option<Addr<Self>>,
|
||||||
hb: Instant,
|
hb: Instant,
|
||||||
special_hb: Instant,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
|
@ -81,10 +80,6 @@ impl StreamHandler<Result<ws::Message, ws::ProtocolError>> for WsSansad {
|
||||||
self.hb = Instant::now();
|
self.hb = Instant::now();
|
||||||
}
|
}
|
||||||
Ok(ws::Message::Text(msg)) => {
|
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()));
|
futures::executor::block_on(self.parse_text_handle(msg.to_string()));
|
||||||
}
|
}
|
||||||
Ok(ws::Message::Close(msg)) => {
|
Ok(ws::Message::Close(msg)) => {
|
||||||
|
|
@ -103,7 +98,6 @@ impl WsSansad {
|
||||||
isthiti: Isthiti::None,
|
isthiti: Isthiti::None,
|
||||||
addr: None,
|
addr: None,
|
||||||
hb: Instant::now(),
|
hb: Instant::now(),
|
||||||
special_hb: Instant::now(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue