修复metricIndex的TagkvMap初始化两次造成的内存浪费 (#424)

Co-authored-by: zhuxingtao <zhuxingtao@baijiahulian.com>
This commit is contained in:
snow_white 2020-11-28 10:12:49 +08:00 committed by GitHub
parent 0e8b626528
commit 99d2d7a2ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -27,7 +27,6 @@ func NewMetricIndex(item dataobj.IndexModel, counter string, now int64) *MetricI
Ts: now,
}
metricIndex.TagkvMap = NewTagkvIndex()
for k, v := range item.Tags {
metricIndex.TagkvMap.Set(k, v, now)
}