Skip to content

Commit 41ebef8

Browse files
authored
fix: storage: Fix a race in GenerateWindowPoStAdv (#12064)
1 parent 0a51a0a commit 41ebef8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

storage/sealer/worker_local.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,8 @@ func (l *LocalWorker) GenerateWindowPoStAdv(ctx context.Context, ppt abi.Registe
675675

676676
go func(i int, s storiface.PostSectorChallenge) {
677677
defer wg.Done()
678+
ctx := ctx
679+
678680
defer func() {
679681
if l.challengeThrottle != nil {
680682
<-l.challengeThrottle

0 commit comments

Comments
 (0)