Skip to content

Commit 6cca172

Browse files
remove cast
1 parent dd29c58 commit 6cca172

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/actions/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func CreateTaskForRunner(ctx context.Context, runner *ActionRunner) (*ActionTask
266266

267267
// TODO: a more efficient way to filter labels
268268
log.Trace("runner labels: %v", runner.AgentLabels)
269-
backoffGen := rand.New(rand.NewSource(time.Now().UnixNano() ^ int64(runner.ID)))
269+
backoffGen := rand.New(rand.NewSource(time.Now().UnixNano() ^ runner.ID))
270270
for _, v := range jobs {
271271
if runner.CanMatchLabels(v.RunsOn) {
272272
// Reserve our job before preparing task, otherwise continue searching

0 commit comments

Comments
 (0)