0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-12-10 13:15:04 +01:00

remove cast

This commit is contained in:
ChristopherHX 2025-11-14 17:04:20 +01:00 committed by GitHub
parent dd29c58bd5
commit 6cca172a65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -266,7 +266,7 @@ func CreateTaskForRunner(ctx context.Context, runner *ActionRunner) (*ActionTask
// TODO: a more efficient way to filter labels
log.Trace("runner labels: %v", runner.AgentLabels)
backoffGen := rand.New(rand.NewSource(time.Now().UnixNano() ^ int64(runner.ID)))
backoffGen := rand.New(rand.NewSource(time.Now().UnixNano() ^ runner.ID))
for _, v := range jobs {
if runner.CanMatchLabels(v.RunsOn) {
// Reserve our job before preparing task, otherwise continue searching