diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-21 17:18:16 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-21 17:18:16 +0200 |
commit | 10c886111e304a53be24b29194f2127d91121929 (patch) | |
tree | bd61e98beeccfe338c1ae41a8c1322493f618dd2 /src/table/merkle.rs | |
parent | 14337d2a561887b94ea165727dd49263717cb478 (diff) | |
download | garage-10c886111e304a53be24b29194f2127d91121929.tar.gz garage-10c886111e304a53be24b29194f2127d91121929.zip |
Rename things, garage worker list cmd
Diffstat (limited to 'src/table/merkle.rs')
-rw-r--r-- | src/table/merkle.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/table/merkle.rs b/src/table/merkle.rs index d4d2717f..06d131cb 100644 --- a/src/table/merkle.rs +++ b/src/table/merkle.rs @@ -310,7 +310,16 @@ where R: TableReplication + 'static, { fn name(&self) -> String { - format!("Merkle tree updater: {}", F::TABLE_NAME) + format!("{} Merkle tree updater", F::TABLE_NAME) + } + + fn info(&self) -> Option<String> { + let l = self.0.todo_len().unwrap_or(0); + if l > 0 { + Some(format!("{} items in queue", l)) + } else { + None + } } async fn work( |