Skip to content

Commit

Permalink
refactor: Add sleep to avoid API hammering
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Oct 5, 2023
1 parent 648563f commit c64c80a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cannon/deriver/blockprint/block_classification.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ func (b *BlockClassificationDeriver) run(rctx context.Context) {
return err
}

// Sleep if everything went well to avoid hammering the API
time.Sleep(5000 * time.Millisecond)

bo.Reset()

return nil
Expand Down

0 comments on commit c64c80a

Please sign in to comment.