Remove websocket rate limit
This commit is contained in:
@ -53,7 +53,6 @@ pub async fn lights_task(state: &State) {
|
|||||||
|
|
||||||
loop {
|
loop {
|
||||||
let notify = bulb_states.notify_on_change();
|
let notify = bulb_states.notify_on_change();
|
||||||
sleep(tokio::time::Duration::from_millis(1000 / 10)).await; // limit to 10 updates/second
|
|
||||||
select! {
|
select! {
|
||||||
_ = notify => {
|
_ = notify => {
|
||||||
let lights_state = lights_state.get();
|
let lights_state = lights_state.get();
|
||||||
|
|||||||
Reference in New Issue
Block a user