changed map+rwMutext to sync.Map
This commit is contained in:
@@ -118,7 +118,7 @@ func (p *Process) Start(path, filename string) {
|
||||
}
|
||||
info := DownloadInfo{URL: p.url}
|
||||
json.Unmarshal(stdout, &info)
|
||||
p.mem.Update(p.id, info)
|
||||
p.mem.UpdateInfo(p.id, info)
|
||||
}()
|
||||
|
||||
// --------------- progress block --------------- //
|
||||
|
||||
Reference in New Issue
Block a user