Update ChunkSpec initialization
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
456a5f5c4d
commit
34957f809b
|
@ -13,7 +13,7 @@ type ChunkSpec []uint64
|
||||||
// CreateChunkSpec given a full list of chunks with their downloaded status (true for downloaded, false otherwise)
|
// 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
|
// derives a list of identifiers of chunks that have not been downloaded yet
|
||||||
func CreateChunkSpec(progress []bool) ChunkSpec {
|
func CreateChunkSpec(progress []bool) ChunkSpec {
|
||||||
chunks := []uint64{}
|
chunks := ChunkSpec{}
|
||||||
for i, p := range progress {
|
for i, p := range progress {
|
||||||
if !p {
|
if !p {
|
||||||
chunks = append(chunks, uint64(i))
|
chunks = append(chunks, uint64(i))
|
||||||
|
|
Loading…
Reference in New Issue