From 906a9bd37c461d80cb99a28804630548765138b4 Mon Sep 17 00:00:00 2001 From: "zhenshan.cao" Date: Sun, 3 Oct 2021 19:49:55 +0800 Subject: [PATCH] [skip ci] fix golint error in metrics_info.go (#9127) Signed-off-by: zhenshan.cao --- internal/util/metricsinfo/metrics_info.go | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/internal/util/metricsinfo/metrics_info.go b/internal/util/metricsinfo/metrics_info.go index b3fe75c93c..c3c26bc4d0 100644 --- a/internal/util/metricsinfo/metrics_info.go +++ b/internal/util/metricsinfo/metrics_info.go @@ -44,11 +44,18 @@ type HardwareMetrics struct { } const ( + // GitCommitEnvKey defines the key to retrieve the commit corresponding to the current milvus version + // from the metrics information GitCommitEnvKey = "MILVUS_GIT_COMMIT" - // maybe MILVUS_DEPLOY_MODE is more reasonable? not easy to change this due to compatible issue - DeployModeEnvKey = "DEPLOY_MODE" - ClusterDeployMode = "DISTRIBUTED" + // DeployModeEnvKey defines the key to retrieve the current milvus deployment mode + // from the metrics information + DeployModeEnvKey = "DEPLOY_MODE" + + // ClusterDeployMode represents distributed deployment mode + ClusterDeployMode = "DISTRIBUTED" + + // StandaloneDeployMode represents the stand-alone deployment mode StandaloneDeployMode = "STANDALONE" )