From 509733bfb896b044150e53c722e2935830ca8162 Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Mon, 20 Nov 2023 15:14:28 +0100 Subject: [PATCH] Revert "Refactor heartbeat task to support WebAssembly" This reverts commit 8c2364b8d052b9ebdcbe0c91d570a9b94422a358. --- src/gateway/heartbeat.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/gateway/heartbeat.rs b/src/gateway/heartbeat.rs index 25f4223..b8e4bec 100644 --- a/src/gateway/heartbeat.rs +++ b/src/gateway/heartbeat.rs @@ -33,14 +33,9 @@ impl HeartbeatHandler { let (send, receive) = tokio::sync::mpsc::channel(32); let kill_receive = kill_rc.resubscribe(); - #[cfg(not(target_arch = "wasm32"))] let handle: JoinHandle<()> = task::spawn(async move { Self::heartbeat_task(websocket_tx, heartbeat_interval, receive, kill_receive).await; }); - #[cfg(target_arch = "wasm32")] - let handle: JoinHandle<()> = task::spawn_local(move || { - Self::heartbeat_task(websocket_tx, heartbeat_interval, receive, kill_receive); - }); Self { heartbeat_interval,