Skip to content

Commit

Permalink
updated the variable name from getConsistency to serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrtr committed Nov 14, 2021
1 parent d03ad8b commit fc0129c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/etcdserver/api/etcdhttp/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit fc0129c

Please sign in to comment.