修复metricIndex的TagkvMap初始化两次造成的内存浪费 (#424)
Co-authored-by: zhuxingtao <zhuxingtao@baijiahulian.com>
This commit is contained in:
parent
0e8b626528
commit
99d2d7a2ae
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue