diff options
author | Alex <lx@deuxfleurs.fr> | 2025-02-05 19:54:42 +0000 |
---|---|---|
committer | Alex <lx@deuxfleurs.fr> | 2025-02-05 19:54:42 +0000 |
commit | 71655c1e89b87fa009d1c5a56448b2fe7df05c49 (patch) | |
tree | 9a61083c2d2b4247703a04976f6ba0baa162bfd2 /src/util/background/mod.rs | |
parent | e96014ca60331b50a5a67383589ba5b1c74018d0 (diff) | |
parent | 7c8fc04b9645d4cbccd30749735d30aad18c9575 (diff) | |
download | garage-71655c1e89b87fa009d1c5a56448b2fe7df05c49.tar.gz garage-71655c1e89b87fa009d1c5a56448b2fe7df05c49.zip |
Merge pull request 'Admin API refactoring: convert existing commands to API requests (step 3)' (#945) from refactor-admin into next-v2
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/945
Diffstat (limited to 'src/util/background/mod.rs')
-rw-r--r-- | src/util/background/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/background/mod.rs b/src/util/background/mod.rs index 607cd7a3..cae3a462 100644 --- a/src/util/background/mod.rs +++ b/src/util/background/mod.rs @@ -6,7 +6,6 @@ pub mod worker; use std::collections::HashMap; use std::sync::Arc; -use serde::{Deserialize, Serialize}; use tokio::sync::{mpsc, watch}; use worker::WorkerProcessor; @@ -18,7 +17,7 @@ pub struct BackgroundRunner { worker_info: Arc<std::sync::Mutex<HashMap<usize, WorkerInfo>>>, } -#[derive(Clone, Serialize, Deserialize, Debug)] +#[derive(Clone, Debug)] pub struct WorkerInfo { pub name: String, pub status: WorkerStatus, @@ -30,7 +29,7 @@ pub struct WorkerInfo { /// WorkerStatus is a struct returned by the worker with a bunch of canonical /// fields to indicate their status to CLI users. All fields are optional. -#[derive(Clone, Serialize, Deserialize, Debug, Default)] +#[derive(Clone, Debug, Default)] pub struct WorkerStatus { pub tranquility: Option<u32>, pub progress: Option<String>, |