From 176e956cd1c2b82c0356593fea46b3ac3b898277 Mon Sep 17 00:00:00 2001 From: Devdutt Shenoi Date: Mon, 13 May 2024 10:54:40 +0530 Subject: [PATCH] doc: remove comment --- uplink/src/console.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/uplink/src/console.rs b/uplink/src/console.rs index 4d3e11bfd..400658bfd 100644 --- a/uplink/src/console.rs +++ b/uplink/src/console.rs @@ -58,7 +58,6 @@ async fn shutdown(State(state): State) -> impl IntoResponse { // Stops downloader from downloading even if it was already stopped async fn disable_downloader(State(state): State) -> impl IntoResponse { info!("Downloader stopped"); - // Shouldn't panic as always sets to true let mut is_disabled = state.downloader_disable.lock().unwrap(); if *is_disabled { StatusCode::ACCEPTED @@ -71,7 +70,6 @@ async fn disable_downloader(State(state): State) -> impl IntoRespon // Start downloader back up even if it was already not stopped async fn enable_downloader(State(state): State) -> impl IntoResponse { info!("Downloader started"); - // Shouldn't panic as always sets to true let mut is_disabled = state.downloader_disable.lock().unwrap(); if *state.downloader_disable.lock().unwrap() { *is_disabled = false;