Skip to content

Commit

Permalink
doc: remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Devdutt Shenoi committed May 13, 2024
1 parent d4e0984 commit 176e956
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions uplink/src/console.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ async fn shutdown(State(state): State<StateHandle>) -> impl IntoResponse {
// Stops downloader from downloading even if it was already stopped
async fn disable_downloader(State(state): State<StateHandle>) -> 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
Expand All @@ -71,7 +70,6 @@ async fn disable_downloader(State(state): State<StateHandle>) -> impl IntoRespon
// Start downloader back up even if it was already not stopped
async fn enable_downloader(State(state): State<StateHandle>) -> 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;
Expand Down

0 comments on commit 176e956

Please sign in to comment.