aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rpc/system.rs2
-rw-r--r--src/util/background/worker.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/system.rs b/src/rpc/system.rs
index 77b79864..f9f2970b 100644
--- a/src/rpc/system.rs
+++ b/src/rpc/system.rs
@@ -105,7 +105,7 @@ pub struct System {
/// The job runner of this node
pub background: Arc<BackgroundRunner>,
- /// Path to metadata directory (usefull)
+ /// Path to metadata directory
pub metadata_dir: PathBuf,
}
diff --git a/src/util/background/worker.rs b/src/util/background/worker.rs
index 7fd63c2b..aadc677f 100644
--- a/src/util/background/worker.rs
+++ b/src/util/background/worker.rs
@@ -47,7 +47,7 @@ pub trait Worker: Send {
/// middle of processing, it will only be interrupted at the last minute when Garage is trying
/// to exit and this hasn't returned yet. This function may return an error to indicate that
/// its unit of work could not be processed due to an error: the error will be logged and
- /// .work() will be called again immediately.
+ /// .work() will be called again after a short delay.
async fn work(&mut self, must_exit: &mut watch::Receiver<bool>) -> Result<WorkerStatus, Error>;
/// Wait for work: await for some task to become available. This future can be interrupted in