Skip to content

Commit 9fe3637

Browse files
committed
address the comment
Signed-off-by: Ryan Leung <rleungx@gmail.com>
1 parent 4011cc3 commit 9fe3637

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/statistics/store_collection.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ func (s *storeStatistics) Collect() {
187187
placementStatusGauge.WithLabelValues(labelType, name).Set(float64(value))
188188
}
189189

190-
storesLimit := s.opt.GetStoresLimit()
191-
for storeID, limit := range storesLimit {
190+
for storeID, limit := range s.opt.GetStoresLimit() {
192191
id := strconv.FormatUint(storeID, 10)
193192
StoreLimitGauge.WithLabelValues(id, "add-peer").Set(limit.AddPeer)
194193
StoreLimitGauge.WithLabelValues(id, "remove-peer").Set(limit.RemovePeer)

0 commit comments

Comments
 (0)