mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 22:23:17 +08:00
[hotfix] Use ref in WorkerPool::TryKillingIdleWorkers (#11017)
This commit is contained in:
@@ -649,7 +649,7 @@ void WorkerPool::PushWorker(const std::shared_ptr<WorkerInterface> &worker) {
|
||||
|
||||
void WorkerPool::TryKillingIdleWorkers() {
|
||||
size_t running_size = 0;
|
||||
for (const auto worker : GetAllRegisteredWorkers()) {
|
||||
for (const auto &worker : GetAllRegisteredWorkers()) {
|
||||
if (!worker->IsDead()) {
|
||||
running_size++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user