Skip to content

Commit

Permalink
Move _serialize out of loop
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavgransbo committed Sep 27, 2024
1 parent c5c5df2 commit 423f21d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/poetry/installation/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,14 @@ def execute(self, operations: list[Operation]) -> int:
self._executor.submit(self._execute_operation, operation)
)

def _serialize(
repository_serial_operations: list[Operation],
) -> None:
for operation in repository_serial_operations:
self._execute_operation(operation)

# For each git repository, execute all operations serially
for repository_git_operations in serial_git_operations.values():

def _serialize(
repository_serial_operations: list[Operation],
) -> None:
for operation in repository_serial_operations:
self._execute_operation(operation)

tasks.append(
self._executor.submit(
_serialize,
Expand Down

0 comments on commit 423f21d

Please sign in to comment.