Skip to content

Commit 698a313

Browse files
committed
Rename SyncMaptoMap -> SyncMapToMap
Signed-off-by: Shivanth <[email protected]>
1 parent c4ea7a5 commit 698a313

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

prometheus/histogram_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ func compareNativeExemplarValues(t *testing.T, exps []*dto.Exemplar, values []fl
14561456
}
14571457
}
14581458

1459-
func syncMaptoMap(syncmap *sync.Map) (m map[int]int64) {
1459+
func syncMapToMap(syncmap *sync.Map) (m map[int]int64) {
14601460
m = map[int]int64{}
14611461
syncmap.Range(func(key, value any) bool {
14621462
m[key.(int)] = *value.(*int64)
@@ -1974,8 +1974,8 @@ func TestConstNativeHistogram(t *testing.T) {
19741974
consthist, err := NewConstNativeHistogram(_his.Desc(),
19751975
cold.count,
19761976
math.Float64frombits(cold.sumBits),
1977-
syncMaptoMap(&cold.nativeHistogramBucketsPositive),
1978-
syncMaptoMap(&cold.nativeHistogramBucketsNegative),
1977+
syncMapToMap(&cold.nativeHistogramBucketsPositive),
1978+
syncMapToMap(&cold.nativeHistogramBucketsNegative),
19791979
cold.nativeHistogramZeroBucket,
19801980
cold.nativeHistogramSchema,
19811981
math.Float64frombits(cold.nativeHistogramZeroThresholdBits),

0 commit comments

Comments
 (0)