Skip to content

Commit

Permalink
Make data channel buffered
Browse files Browse the repository at this point in the history
  • Loading branch information
corny committed Aug 16, 2023
1 parent 2218486 commit 978570b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func getChunks(totalSize, chunkSize int64) []chunk {
end = totalSize - 1
}

chunks = append(chunks, chunk{start, end, make(chan []byte)})
chunks = append(chunks, chunk{start, end, make(chan []byte, 1)})
}

return chunks
Expand Down

0 comments on commit 978570b

Please sign in to comment.