14360: Rename Workers -> CountWorkers.
[arvados.git] / lib / dispatchcloud / scheduler / fix_stale_locks.go
index 985941090d7197c5d7e202c5aad7476f2064a763..264f9e4ec6bbc3747401858a37c3f70b259116c1 100644 (file)
@@ -28,7 +28,7 @@ waiting:
                        // If all workers have been contacted, unlock
                        // containers that aren't claimed by any
                        // worker.
-                       unlock = sch.pool.Workers()[worker.StateUnknown] == 0
+                       unlock = sch.pool.CountWorkers()[worker.StateUnknown] == 0
                case <-timeout.C:
                        // Give up and unlock the containers, even
                        // though they might be working.