Skip to content

Commit

Permalink
Upgrade lock for delete encoding request (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-shim authored Mar 19, 2024
1 parent 1438b7c commit 2776648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions disperser/batcher/encoded_blob_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ func (e *encodedBlobStore) HasEncodingRequested(blobKey disperser.BlobKey, quoru
}

func (e *encodedBlobStore) DeleteEncodingRequest(blobKey disperser.BlobKey, quorumID core.QuorumID) {
e.mu.RLock()
defer e.mu.RUnlock()
e.mu.Lock()
defer e.mu.Unlock()

requestID := getRequestID(blobKey, quorumID)
if _, ok := e.requested[requestID]; !ok {
Expand Down

0 comments on commit 2776648

Please sign in to comment.