Skip to content

Commit e7348f5

Browse files
Update storage/store/chunk_data_packs.go
Co-authored-by: Alexander Hentschel <[email protected]>
1 parent 4555afa commit e7348f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/store/chunk_data_packs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (ch *ChunkDataPacks) BatchRemove(
179179
protocolDBBatch storage.ReaderBatchWriter,
180180
) ([]flow.Identifier, error) {
181181
// First, collect all stored chunk data pack IDs that need to be removed
182-
var chunkDataPackIDs []flow.Identifier
182+
chunkDataPackIDs := make([]flow.Identifier, 0, len(chunkIDs))
183183
for _, chunkID := range chunkIDs {
184184
chunkDataPackID, err := ch.chunkIDToChunkDataPackIDCache.Get(protocolDBBatch.GlobalReader(), chunkID)
185185
if err != nil {

0 commit comments

Comments
 (0)