Rename SyncMaptoMap -> SyncMapToMap
Signed-off-by: Shivanth <shivanth.metchem@deliveryhero.com>
This commit is contained in:
parent
aaa4dd1449
commit
782f32e1e7
|
@ -1456,7 +1456,7 @@ func compareNativeExemplarValues(t *testing.T, exps []*dto.Exemplar, values []fl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func syncMaptoMap(syncmap *sync.Map) (m map[int]int64) {
|
func syncMapToMap(syncmap *sync.Map) (m map[int]int64) {
|
||||||
m = map[int]int64{}
|
m = map[int]int64{}
|
||||||
syncmap.Range(func(key, value any) bool {
|
syncmap.Range(func(key, value any) bool {
|
||||||
m[key.(int)] = *value.(*int64)
|
m[key.(int)] = *value.(*int64)
|
||||||
|
@ -1974,8 +1974,8 @@ func TestConstNativeHistogram(t *testing.T) {
|
||||||
consthist, err := NewConstNativeHistogram(_his.Desc(),
|
consthist, err := NewConstNativeHistogram(_his.Desc(),
|
||||||
cold.count,
|
cold.count,
|
||||||
math.Float64frombits(cold.sumBits),
|
math.Float64frombits(cold.sumBits),
|
||||||
syncMaptoMap(&cold.nativeHistogramBucketsPositive),
|
syncMapToMap(&cold.nativeHistogramBucketsPositive),
|
||||||
syncMaptoMap(&cold.nativeHistogramBucketsNegative),
|
syncMapToMap(&cold.nativeHistogramBucketsNegative),
|
||||||
cold.nativeHistogramZeroBucket,
|
cold.nativeHistogramZeroBucket,
|
||||||
cold.nativeHistogramSchema,
|
cold.nativeHistogramSchema,
|
||||||
math.Float64frombits(cold.nativeHistogramZeroThresholdBits),
|
math.Float64frombits(cold.nativeHistogramZeroThresholdBits),
|
||||||
|
|
Loading…
Reference in New Issue