From cefaa6545f7a96020a74514841843fdea0ee4b0e Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Thu, 16 Nov 2023 19:25:55 +0100 Subject: [PATCH] Remove duplicate code --- src/gateway/wasm/heartbeat.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/gateway/wasm/heartbeat.rs b/src/gateway/wasm/heartbeat.rs index 86d9573..6916db4 100644 --- a/src/gateway/wasm/heartbeat.rs +++ b/src/gateway/wasm/heartbeat.rs @@ -2,15 +2,3 @@ use tokio::task::JoinHandle; use ws_stream_wasm::*; use super::*; - -/// Handles sending heartbeats to the gateway in another thread -#[allow(dead_code)] // FIXME: Remove this, once used -#[derive(Debug)] -pub struct WasmHeartbeatHandler { - /// How ofter heartbeats need to be sent at a minimum - pub heartbeat_interval: Duration, - /// The send channel for the heartbeat thread - pub send: Sender, - /// The handle of the thread - handle: JoinHandle<()>, -}