Skip to content

Commit

Permalink
Fixed formatting (black)
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Jan 27, 2022
1 parent 238dfc3 commit 1ac4e5c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jumpstarter/actors.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ def _state_machine(cls) -> ActorStateMachine:
@property
def _global_worker_threads_capacity(cls) -> CapacityLimiter:
if cls.__global_worker_threads_capacity_limiter is None:
cls.__global_worker_threads_capacity_limiter = (
anyio.CapacityLimiter(os.cpu_count())
cls.__global_worker_threads_capacity_limiter = anyio.CapacityLimiter(
os.cpu_count()
)

return cls.__global_worker_threads_capacity_limiter
Expand All @@ -164,8 +164,8 @@ def _state_machine(cls) -> ActorStateMachine:
@classproperty
def _global_worker_threads_capacity(cls) -> CapacityLimiter:
if cls.__global_worker_threads_capacity_limiter is None:
cls.__global_worker_threads_capacity_limiter = (
anyio.CapacityLimiter(os.cpu_count())
cls.__global_worker_threads_capacity_limiter = anyio.CapacityLimiter(
os.cpu_count()
)

return cls.__global_worker_threads_capacity_limiter
Expand Down

0 comments on commit 1ac4e5c

Please sign in to comment.