Skip to content

Commit 4fe9877

Browse files
committed
chore: Fix variable reference in runner selection logic in sched.go
1 parent f72f149 commit 4fe9877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/sched.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (s *Scheduler) processPending(ctx context.Context) {
124124
if len(runners) > 0 {
125125
var minRef = runners[0].refCount
126126
for _, r := range runners {
127-
if runner.refCount <= minRef{
127+
if r.refCount <= minRef{
128128
runner = r
129129
minRef = r.refCount
130130
}

0 commit comments

Comments
 (0)