diff options
author | maximilien <me@mricher.fr> | 2025-01-17 06:06:14 +0000 |
---|---|---|
committer | maximilien <me@mricher.fr> | 2025-01-17 06:06:14 +0000 |
commit | 294cb9940943d7febc1029ed44145daf57f914d0 (patch) | |
tree | be9b2912ae92b07ef5e7905372b1bc2a542234c6 /src/util/background | |
parent | 255b01b626096ef98cf24c9552b39c0372fb4eb3 (diff) | |
parent | 2eb9fcae20cb7e41b1197f4565db492a97f95736 (diff) | |
download | garage-294cb9940943d7febc1029ed44145daf57f914d0.tar.gz garage-294cb9940943d7febc1029ed44145daf57f914d0.zip |
Merge pull request 'Fix all typos' (#928) from majst01/garage:fix-typos into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/928
Reviewed-by: maximilien <me@mricher.fr>
Diffstat (limited to 'src/util/background')
-rw-r--r-- | src/util/background/worker.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/background/worker.rs b/src/util/background/worker.rs index 8165e2cb..76fb14e8 100644 --- a/src/util/background/worker.rs +++ b/src/util/background/worker.rs @@ -14,7 +14,7 @@ use crate::background::{WorkerInfo, WorkerStatus}; use crate::error::Error; use crate::time::now_msec; -// All workers that haven't exited for this time after an exit signal was recieved +// All workers that haven't exited for this time after an exit signal was received // will be interrupted in the middle of whatever they are doing. const EXIT_DEADLINE: Duration = Duration::from_secs(8); @@ -54,7 +54,7 @@ pub trait Worker: Send { async fn work(&mut self, must_exit: &mut watch::Receiver<bool>) -> Result<WorkerState, Error>; /// Wait for work: await for some task to become available. This future can be interrupted in - /// the middle for any reason, for example if an interrupt signal was recieved. + /// the middle for any reason, for example if an interrupt signal was received. async fn wait_for_work(&mut self) -> WorkerState; } |