Skip to content

Commit

Permalink
Remove useless chunkpool
Browse files Browse the repository at this point in the history
  • Loading branch information
renbou committed Oct 17, 2021
1 parent c4649c0 commit 88f1918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (d *Download) Init() (err error) {
// Set chunk ranges.
for i := uint64(0); i < chunksLen; i++ {

chunk := ChunkPool.Get().(*Chunk)
chunk := new(Chunk)
d.chunks = append(d.chunks, chunk)

chunk.Start = (d.ChunkSize * i) + i
Expand Down

0 comments on commit 88f1918

Please sign in to comment.