commitment tracker: Fix deadlock

This commit is contained in:
Łukasz Magiera 2019-09-16 19:23:13 +02:00
parent eb762619f5
commit 55014becc8

View File

@ -119,6 +119,9 @@ func (ct *Tracker) WaitCommit(ctx context.Context, miner address.Address, sector
wait = make(chan struct{})
ct.waits[key] = wait
}
ct.lk.Unlock()
select {
case <-wait:
tracking, err := ct.commitDs.Get(key)