mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-22 02:36:38 +00:00
cli: new worker info command
This commit is contained in:
+2
-2
@@ -257,7 +257,7 @@ impl BlockResyncManager {
|
||||
|
||||
if let Err(e) = &res {
|
||||
manager.metrics.resync_error_counter.add(1);
|
||||
warn!("Error when resyncing {:?}: {}", hash, e);
|
||||
error!("Error when resyncing {:?}: {}", hash, e);
|
||||
|
||||
let err_counter = match self.errors.get(hash.as_slice())? {
|
||||
Some(ec) => ErrorCounter::decode(&ec).add1(now + 1),
|
||||
@@ -482,7 +482,7 @@ impl Worker for ResyncWorker {
|
||||
|
||||
if self.index >= persisted.n_workers {
|
||||
return WorkerStatus {
|
||||
freeform: vec!["(unused)".into()],
|
||||
freeform: vec!["This worker is currently disabled".into()],
|
||||
..Default::default()
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user