Skip to content

Commit

Permalink
fix: remove unused variable in delete requests store code (#16241)
Browse files Browse the repository at this point in the history
Signed-off-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com>
  • Loading branch information
sandeepsukhani authored Feb 13, 2025
1 parent 996b473 commit 5e6d0b5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/compactor/deletion/delete_requests_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,12 @@ func (ds *deleteRequestsStore) AddDeleteRequest(ctx context.Context, userID, que
return "", err
}

var results []DeleteRequest
for i, req := range reqs {
newReq, err := newRequest(req, requestID, createdAt, i)
if err != nil {
return "", err
}

results = append(results, newReq)
ds.writeDeleteRequest(newReq, writeBatch)
}
ds.updateCacheGen(reqs[0].UserID, writeBatch)
Expand Down

0 comments on commit 5e6d0b5

Please sign in to comment.