Skip to content

Commit

Permalink
fix: storage: Fix a race in GenerateWindowPoStAdv (filecoin-project#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k authored Jun 3, 2024
1 parent 0a51a0a commit 41ebef8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions storage/sealer/worker_local.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 41ebef8

Please sign in to comment.