From b8e05e33a6e4214a1870b3ece8542be86d7fd662 Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Sun, 5 Nov 2023 13:42:23 +0100 Subject: [PATCH] Remove websocket rate limit --- backend/src/tasks/lights.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/src/tasks/lights.rs b/backend/src/tasks/lights.rs index 9deac97..d1df757 100644 --- a/backend/src/tasks/lights.rs +++ b/backend/src/tasks/lights.rs @@ -53,7 +53,6 @@ pub async fn lights_task(state: &State) { loop { let notify = bulb_states.notify_on_change(); - sleep(tokio::time::Duration::from_millis(1000 / 10)).await; // limit to 10 updates/second select! { _ = notify => { let lights_state = lights_state.get();