Skip to content

Commit d30a64b

Browse files
committed
test
1 parent 2c25f9a commit d30a64b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

types/histogram/sync_histogram.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ func (h *SyncHistogram[T]) Merge(other *SyncHistogram[T]) error {
141141
other.l.RLock()
142142

143143
if h.base != other.base || h.htype != other.htype || len(h.Buckets) != len(other.Buckets) {
144+
other.l.RUnlock()
144145
h.l.Unlock()
145146
return errors.New("histograms do not match")
146147
}

0 commit comments

Comments
 (0)