Finish the lint remediation: script/cibuild exits 0 (closes #61) #77
@@ -53,7 +53,7 @@ func TestChunkerLargeFileMultipleChunks(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Verify chunks reconstruct original data
|
// Verify chunks reconstruct original data
|
||||||
var reconstructed []byte
|
reconstructed := make([]byte, 0, len(data))
|
||||||
for _, chunk := range chunks {
|
for _, chunk := range chunks {
|
||||||
reconstructed = append(reconstructed, chunk.Data...)
|
reconstructed = append(reconstructed, chunk.Data...)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -624,11 +624,11 @@ func (s *Scanner) collectBatchFlushData(
|
|||||||
|
|
||||||
collectStart := time.Now()
|
collectStart := time.Now()
|
||||||
|
|
||||||
var (
|
// Every pending file contributes at least one file-chunk and one
|
||||||
allFileChunks []database.FileChunk
|
// chunk-file mapping, so the file count is a safe lower bound for the
|
||||||
allChunkFiles []database.ChunkFile
|
// initial capacity of both slices.
|
||||||
)
|
allFileChunks := make([]database.FileChunk, 0, len(canFlush))
|
||||||
|
allChunkFiles := make([]database.ChunkFile, 0, len(canFlush))
|
||||||
allFileIDs := make([]types.FileID, 0, len(canFlush))
|
allFileIDs := make([]types.FileID, 0, len(canFlush))
|
||||||
allFiles := make([]*database.File, 0, len(canFlush))
|
allFiles := make([]*database.File, 0, len(canFlush))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user