Skip to content

Commit

Permalink
fixup! Add jitter to the pollingInterval of GitRepos
Browse files Browse the repository at this point in the history
  • Loading branch information
manno committed Jan 8, 2025
1 parent e3ff06e commit b0ece7b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func addJitter(d time.Duration) time.Duration {
return d
}

return d + time.Duration(rand.Int64N(int64(d)/5)-int64(d)/10) // nolint:gosec // gosec G404 false positive, not used for crypto
return d + time.Duration(rand.Int64N(int64(d)/10)) // nolint:gosec // gosec G404 false positive, not used for crypto
}

// manageGitJob is responsible for creating, updating and deleting the GitJob and setting the GitRepo's status accordingly
Expand Down

0 comments on commit b0ece7b

Please sign in to comment.