From c518e8cf91729561b773985ddbfda069756b1a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piyush=20=E0=A4=AE=E0=A4=BF=E0=A4=B6=E0=A5=8D=E0=A4=B0?= Date: Sun, 25 Jun 2023 21:54:57 +0530 Subject: [PATCH] Removed useless lines --- src/ws_sansad/mod.rs | 6 ------ 1 file changed, 6 deletions(-) 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(), } }