aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-07-08 10:45:20 +0200
committerAlex Auvolat <alex@adnab.me>2022-07-08 10:45:20 +0200
commit08cd5f2f1d4a42e63a256eb3a7811e874d222fe4 (patch)
tree256ee885e93cf1c41dc2869fe13a648aa91ab9b5 /src/util
parent18d014dcc5840e5eae8581a5bfa846aad93beeea (diff)
downloadgarage-background-task-manager.tar.gz
garage-background-task-manager.zip
Diffstat (limited to 'src/util')
-rw-r--r--src/util/background/job_worker.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/util/background/job_worker.rs b/src/util/background/job_worker.rs
index 6754382a..2568ea11 100644
--- a/src/util/background/job_worker.rs
+++ b/src/util/background/job_worker.rs
@@ -21,10 +21,7 @@ impl Worker for JobWorker {
format!("Job worker #{}", self.index)
}
- async fn work(
- &mut self,
- _must_exit: &mut watch::Receiver<bool>,
- ) -> Result<WorkerState, Error> {
+ async fn work(&mut self, _must_exit: &mut watch::Receiver<bool>) -> Result<WorkerState, Error> {
match self.next_job.take() {
None => return Ok(WorkerState::Idle),
Some(job) => {