From 34957f809b0433754ef1ffdf51a27db6caf37d8a Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Sun, 19 Nov 2023 14:45:08 -0800 Subject: [PATCH] Update ChunkSpec initialization --- protocol/files/chunkspec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/files/chunkspec.go b/protocol/files/chunkspec.go index 8041da2..a69be77 100644 --- a/protocol/files/chunkspec.go +++ b/protocol/files/chunkspec.go @@ -13,7 +13,7 @@ type ChunkSpec []uint64 // CreateChunkSpec given a full list of chunks with their downloaded status (true for downloaded, false otherwise) // derives a list of identifiers of chunks that have not been downloaded yet func CreateChunkSpec(progress []bool) ChunkSpec { - chunks := []uint64{} + chunks := ChunkSpec{} for i, p := range progress { if !p { chunks = append(chunks, uint64(i))