From fc0129c0f3d493d64efdf813bc7af13aed8aeb8e Mon Sep 17 00:00:00 2001 From: ahrtr Date: Wed, 13 Oct 2021 16:51:05 +0800 Subject: [PATCH] updated the variable name from getConsistency to serializable --- server/etcdserver/api/etcdhttp/metrics.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/etcdserver/api/etcdhttp/metrics.go b/server/etcdserver/api/etcdhttp/metrics.go index 852eca1ca512..06742afa6398 100644 --- a/server/etcdserver/api/etcdhttp/metrics.go +++ b/server/etcdserver/api/etcdhttp/metrics.go @@ -139,9 +139,9 @@ func getExcludedAlarms(r *http.Request) (alarms AlarmSet) { } func getSerializableFlag(r *http.Request) bool { - getConsistency, found := r.URL.Query()["serializable"] + serializable, found := r.URL.Query()["serializable"] if found { - if len(getConsistency) == 1 && getConsistency[0] == "true" { + if len(serializable) == 1 && serializable[0] == "true" { return true } }