Skip to content

Commit

Permalink
wait for the workers become available again to continue the execution
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <ctadeu@gmail.com>
  • Loading branch information
cpanato committed Jun 26, 2023
1 parent 412a096 commit 3da2c65
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pkg/cosign/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,9 +629,8 @@ func verifySignatures(ctx context.Context, sigs oci.Signatures, h v1.Hash, co *C
t.Done(nil)
}(sig, i)

if t.Throttle() > 0 {
break
}
// wait till workers are available
t.Throttle()
}

for _, s := range signatures {
Expand Down Expand Up @@ -996,9 +995,8 @@ func verifyImageAttestations(ctx context.Context, atts oci.Signatures, h v1.Hash
t.Done(nil)
}(att, i)

if t.Throttle() > 0 {
break
}
// wait till workers are available
t.Throttle()
}

for _, a := range attestations {
Expand Down

0 comments on commit 3da2c65

Please sign in to comment.