Skip to content

Commit

Permalink
Correct changing of pin for watchdog
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmccampbell committed Feb 1, 2021
1 parent a33812d commit c52b71a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ pub async fn run(max_cpus: Option<usize>, alt_start_cmd: bool) -> Result<(), Box
server_state.update().await?;
server_state.report_status(5);
server_state.bytes_this_period = ByteUnit::Byte(0);
watchdog = Box::pin(tokio::time::sleep(Duration::from_secs(5)));
watchdog.set(tokio::time::sleep(Duration::from_secs(5)));
}
}

Expand Down

0 comments on commit c52b71a

Please sign in to comment.