Skip to content

Commit b5aef48

Browse files
author
zhaoxiaojie
committed
fix the code errors
1 parent 2f36367 commit b5aef48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/net/multi_thread.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ func (d *MultiThreadDownloader) DownloadWithContext(ctx context.Context, targetU
8989
unit := total / int64(thread)
9090
offset := total - unit*int64(thread)
9191
var wg sync.WaitGroup
92-
var partItems map[int]string
9392
var m sync.Mutex
93+
partItems := make(map[int]string)
9494

9595
defer func() {
9696
// remove all partial files

0 commit comments

Comments
 (0)