Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
requestbatcher: nil unused slice entries in batchQueue heap
This change nils out unused entries in the batchQueue's slice when the slice is truncated to avoid retaining references to batches of requests and preventing them from being GCed. The change also removes a redundant update of the batchQueue's byRange map. The `delete` was redundant because `heap.Remove` already calls `Pop`.
- Loading branch information