Bloomgateway: Use RUnlock to unlock RLock instead (#10984)

**What this PR does / why we need it**:
Change `Len()` method to use `RUnlock()` instead, since it was locked
using `RLock()`.
pull/10987/head
Dylan Guedes 2 years ago committed by GitHub
parent cb39952309
commit 9d9b05ad40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/bloomgateway/bloomgateway.go

@ -141,7 +141,7 @@ type pendingTasks SyncMap[ulid.ULID, Task]
func (t *pendingTasks) Len() int {
t.RLock()
defer t.Unlock()
defer t.RUnlock()
return len(t.Map)
}

Loading…
Cancel
Save