mirror of
https://github.com/vale981/ray
synced 2025-03-08 11:31:40 -05:00
[hotfix] Use ref in WorkerPool::TryKillingIdleWorkers (#11017)
This commit is contained in:
parent
3716fb1ca9
commit
0f168bf2ef
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue