Skip to content

Commit

Permalink
fix: pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkh committed Aug 23, 2023
1 parent 2870495 commit 5c29704
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tdp_core/dbview.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,9 +636,7 @@ def create_engine(self, config) -> Engine:
_log.info("db connector: using poolclass %s", poolclass)

# Set some default engine options for QueuePool to be backwards compatible with previous tdp_core code
engine_options = (
{"pool_size": 30, "pool_pre_ping": True} if poolclass_name == "QueuePool" or poolclass == QueuePool else {}
)
engine_options = {"pool_size": 30, "pool_pre_ping": True} if poolclass_name == "QueuePool" or poolclass == QueuePool else {}

engine_options.update(config.get("engine", {}))
_log.debug("db connector: create engine with options %s", engine_options)
Expand Down

0 comments on commit 5c29704

Please sign in to comment.