aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin/cluster.rs
diff options
context:
space:
mode:
authorAlex Auvolat <lx@deuxfleurs.fr>2025-01-29 12:06:58 +0100
committerAlex Auvolat <lx@deuxfleurs.fr>2025-01-29 19:26:16 +0100
commit4f0b923c4f2bc9be80bf1e7ca61cc66c354cc7e0 (patch)
tree97cf8f30bf22e576aa55a92778678f99eb9b4437 /src/api/admin/cluster.rs
parent420bbc162dffd1246544168cf2e935efc60c5c98 (diff)
downloadgarage-4f0b923c4f2bc9be80bf1e7ca61cc66c354cc7e0.tar.gz
garage-4f0b923c4f2bc9be80bf1e7ca61cc66c354cc7e0.zip
admin api: small fixes
Diffstat (limited to 'src/api/admin/cluster.rs')
-rw-r--r--src/api/admin/cluster.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/admin/cluster.rs b/src/api/admin/cluster.rs
index 112cb542..0cfd744a 100644
--- a/src/api/admin/cluster.rs
+++ b/src/api/admin/cluster.rs
@@ -151,11 +151,11 @@ impl EndpointHandler for ConnectClusterNodesRequest {
.await
.into_iter()
.map(|r| match r {
- Ok(()) => ConnectClusterNodeResponse {
+ Ok(()) => ConnectNodeResponse {
success: true,
error: None,
},
- Err(e) => ConnectClusterNodeResponse {
+ Err(e) => ConnectNodeResponse {
success: false,
error: Some(format!("{}", e)),
},