Skip to content

Commit 32e7ec5

Browse files
committed
Reference static method on class object instead of self
1 parent 451a12f commit 32e7ec5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

temporalio/worker/_tuning.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,12 @@ def _to_bridge_tuner(self) -> temporalio.bridge.worker.TunerHolder:
453453
)
454454

455455
def _get_activities_max(self) -> Optional[int]:
456-
return self._get_slot_supplier_max(self._get_activity_task_slot_supplier())
456+
return WorkerTuner._get_slot_supplier_max(
457+
self._get_activity_task_slot_supplier()
458+
)
457459

458460
def _get_nexus_tasks_max(self) -> Optional[int]:
459-
return self._get_slot_supplier_max(self._get_nexus_slot_supplier())
461+
return WorkerTuner._get_slot_supplier_max(self._get_nexus_slot_supplier())
460462

461463
@staticmethod
462464
def _get_slot_supplier_max(slot_supplier: SlotSupplier) -> Optional[int]:

0 commit comments

Comments
 (0)