fix: storage: Fix a race in GenerateWindowPoStAdv (#12064)
This commit is contained in:
parent
0a51a0a219
commit
41ebef80e6
@ -675,6 +675,8 @@ func (l *LocalWorker) GenerateWindowPoStAdv(ctx context.Context, ppt abi.Registe
|
||||
|
||||
go func(i int, s storiface.PostSectorChallenge) {
|
||||
defer wg.Done()
|
||||
ctx := ctx
|
||||
|
||||
defer func() {
|
||||
if l.challengeThrottle != nil {
|
||||
<-l.challengeThrottle
|
||||
|
Loading…
Reference in New Issue
Block a user