We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4555afa commit e7348f5Copy full SHA for e7348f5
storage/store/chunk_data_packs.go
@@ -179,7 +179,7 @@ func (ch *ChunkDataPacks) BatchRemove(
179
protocolDBBatch storage.ReaderBatchWriter,
180
) ([]flow.Identifier, error) {
181
// First, collect all stored chunk data pack IDs that need to be removed
182
- var chunkDataPackIDs []flow.Identifier
+ chunkDataPackIDs := make([]flow.Identifier, 0, len(chunkIDs))
183
for _, chunkID := range chunkIDs {
184
chunkDataPackID, err := ch.chunkIDToChunkDataPackIDCache.Get(protocolDBBatch.GlobalReader(), chunkID)
185
if err != nil {
0 commit comments