aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Davies <jpds@protonmail.com>2023-03-10 14:45:18 +0000
committerJonathan Davies <jpds@protonmail.com>2023-03-10 14:46:54 +0000
commit9ea154ae9c6b12175192419679ec1bc40da827d1 (patch)
tree93876b7361cd78def71c3060fd8a9e2e42cb5e7f
parent4421378023465c72ba8e693c949c85c51d96929e (diff)
downloadgarage-9ea154ae9c6b12175192419679ec1bc40da827d1.tar.gz
garage-9ea154ae9c6b12175192419679ec1bc40da827d1.zip
admin/cluster.rs: Added rust_version.
-rw-r--r--src/api/admin/cluster.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/admin/cluster.rs b/src/api/admin/cluster.rs
index 182a4f6f..98bf2b5a 100644
--- a/src/api/admin/cluster.rs
+++ b/src/api/admin/cluster.rs
@@ -20,6 +20,7 @@ pub async fn handle_get_cluster_status(garage: &Arc<Garage>) -> Result<Response<
node: hex::encode(garage.system.id),
garage_version: garage_util::version::garage_version(),
garage_features: garage_util::version::garage_features(),
+ rust_version: garage_util::version::rust_version(),
db_engine: garage.db.engine(),
known_nodes: garage
.system
@@ -106,6 +107,7 @@ struct GetClusterStatusResponse {
node: String,
garage_version: &'static str,
garage_features: Option<&'static [&'static str]>,
+ rust_version: &'static str,
db_engine: String,
known_nodes: HashMap<String, KnownNodeResp>,
layout: GetClusterLayoutResponse,