diff --git a/src/ws_sansad/mod.rs b/src/ws_sansad/mod.rs index 9a43368..f50a23f 100644 --- a/src/ws_sansad/mod.rs +++ b/src/ws_sansad/mod.rs @@ -44,7 +44,6 @@ pub struct WsSansad { isthiti: Isthiti, addr: Option>, hb: Instant, - special_hb: Instant, } #[derive(Debug)] @@ -81,10 +80,6 @@ impl StreamHandler> 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(), } }