sectorstorage: Cleanup callToWork mapping after work is done
This commit is contained in:
parent
aa7090df49
commit
9e7d6823b1
5
extern/sector-storage/manager_calltracker.go
vendored
5
extern/sector-storage/manager_calltracker.go
vendored
@ -232,6 +232,11 @@ func (m *Manager) waitWork(ctx context.Context, wid WorkID) (interface{}, error)
|
||||
res := m.results[wid]
|
||||
delete(m.results, wid)
|
||||
|
||||
_, ok := m.callToWork[ws.WorkerCall]
|
||||
if ok {
|
||||
delete(m.callToWork, ws.WorkerCall)
|
||||
}
|
||||
|
||||
err := m.work.Get(wk).End()
|
||||
if err != nil {
|
||||
// Not great, but not worth discarding potentially multi-hour computation over this
|
||||
|
Loading…
Reference in New Issue
Block a user