diff --git a/storage/sealer/worker_local.go b/storage/sealer/worker_local.go index 2a49447a271..82f939b1040 100644 --- a/storage/sealer/worker_local.go +++ b/storage/sealer/worker_local.go @@ -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