Skip to content

Commit

Permalink
use correct SQLAlchemy pool for asynchronous connections
Browse files Browse the repository at this point in the history
  • Loading branch information
lonvia committed Jan 2, 2024
1 parent fa4e551 commit 02af0a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nominatim/api/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async def setup_database(self) -> None:
if self.config.get_int('API_POOL_SIZE') == 0:
extra_args['poolclass'] = sa.pool.NullPool
else:
extra_args['poolclass'] = sa.pool.QueuePool
extra_args['poolclass'] = sa.pool.AsyncAdaptedQueuePool
extra_args['max_overflow'] = 0
extra_args['pool_size'] = self.config.get_int('API_POOL_SIZE')

Expand Down

0 comments on commit 02af0a2

Please sign in to comment.