From c4bde36f402ff774d1397287905135fd86fc0467 Mon Sep 17 00:00:00 2001 From: Joscha Date: Thu, 18 Aug 2022 15:23:04 +0200 Subject: [PATCH] Remove dependency on log --- Cargo.toml | 1 - src/conn.rs | 3 --- 2 files changed, 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 64caf79..8ea3fde 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,6 @@ edition = "2021" [dependencies] anyhow = "1.0.62" # TODO Remove futures = "0.3.23" -log = "0.4.17" # TODO Remove rand = "0.8.5" serde = { version = "1.0.143", features = ["derive"] } serde_json = "1.0.83" diff --git a/src/conn.rs b/src/conn.rs index 8f597f5..c188c6c 100644 --- a/src/conn.rs +++ b/src/conn.rs @@ -10,7 +10,6 @@ use anyhow::bail; use futures::channel::oneshot; use futures::stream::{SplitSink, SplitStream}; use futures::{SinkExt, StreamExt}; -use log::warn; use rand::Rng; use tokio::net::TcpStream; use tokio::sync::mpsc; @@ -353,7 +352,6 @@ impl State { async fn do_pings(&mut self, event_tx: &mpsc::UnboundedSender) -> anyhow::Result<()> { // Check old ws ping if self.last_ws_ping.is_some() && self.last_ws_ping != self.last_ws_pong { - warn!("server missed ws ping"); bail!("server missed ws ping") } @@ -367,7 +365,6 @@ impl State { // Check old euph ping if self.last_euph_ping.is_some() && self.last_euph_ping != self.last_euph_pong { - warn!("server missed euph ping"); bail!("server missed euph ping") }