diff options
author | Alex Auvolat <alex@adnab.me> | 2020-04-19 21:33:38 +0000 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-04-19 21:33:38 +0000 |
commit | 53cf4d1baaa994544c02ec12f4bea28598720aa8 (patch) | |
tree | fef3fc9538e28682b1f91a65f818b7095ef27a16 /src/admin_rpc.rs | |
parent | ec7f9f07e21ca2771d348b84c6cb14eda64e501c (diff) | |
download | garage-53cf4d1baaa994544c02ec12f4bea28598720aa8.tar.gz garage-53cf4d1baaa994544c02ec12f4bea28598720aa8.zip |
Log which workers are doing what
Diffstat (limited to 'src/admin_rpc.rs')
-rw-r--r-- | src/admin_rpc.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/admin_rpc.rs b/src/admin_rpc.rs index 0318e799..125f897e 100644 --- a/src/admin_rpc.rs +++ b/src/admin_rpc.rs @@ -182,7 +182,9 @@ impl AdminRpcHandler { self.garage .system .background - .spawn_worker(move |must_exit| async move { self2.repair_worker(must_exit).await }) + .spawn_worker("Repair worker".into(), move |must_exit| async move { + self2.repair_worker(must_exit).await + }) .await; Ok(AdminRPC::Ok(format!( "Repair launched on {:?}", |