Skip to content

Commit

Permalink
Use installer.max-workers config to set pool_size of `PyPiReposit…
Browse files Browse the repository at this point in the history
…ory` instance used by `InitCommand`
  • Loading branch information
jakob-keller authored and radoering committed Oct 28, 2023
1 parent 80c26ae commit 8de9f77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/poetry/console/commands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ def _get_pool(self) -> RepositoryPool:

if self._pool is None:
self._pool = RepositoryPool()
self._pool.add_repository(PyPiRepository())
pool_size = self.poetry.config.installer_max_workers
self._pool.add_repository(PyPiRepository(pool_size=pool_size))

return self._pool

0 comments on commit 8de9f77

Please sign in to comment.