aboutsummaryrefslogtreecommitdiff
path: root/src/util/background.rs
diff options
context:
space:
mode:
authorTrinity Pointard <trinity.pointard@gmail.com>2021-03-22 00:01:44 +0100
committerAlex Auvolat <alex@adnab.me>2021-04-27 16:37:10 +0200
commitf8716895715b1a552750062aca9bc1882f6f95c0 (patch)
tree8babe2acf622b55e88cc34fcb0ed81745d14aa8a /src/util/background.rs
parent8e0524ae15e5252aecd30dc01d6993810cf49811 (diff)
downloadgarage-f8716895715b1a552750062aca9bc1882f6f95c0.tar.gz
garage-f8716895715b1a552750062aca9bc1882f6f95c0.zip
run cargo fmt on util and make missing doc warning
Diffstat (limited to 'src/util/background.rs')
-rw-r--r--src/util/background.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/background.rs b/src/util/background.rs
index 3cbcac2a..bfdaaf1e 100644
--- a/src/util/background.rs
+++ b/src/util/background.rs
@@ -21,7 +21,7 @@ pub struct BackgroundRunner {
}
impl BackgroundRunner {
- /// Create a new BackgroundRunner
+ /// Create a new BackgroundRunner
pub fn new(
n_runners: usize,
stop_signal: watch::Receiver<bool>,
@@ -117,8 +117,8 @@ impl BackgroundRunner {
.unwrap();
}
- /// Spawn a task to be run in background. It may get discarded before running if spawned while
- /// the runner is stopping
+ /// Spawn a task to be run in background. It may get discarded before running if spawned while
+ /// the runner is stopping
pub fn spawn_cancellable<T>(&self, job: T)
where
T: Future<Output = JobOutput> + Send + 'static,