Skip to content

Commit

Permalink
Fix bug in stub mode detection
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffxy committed Mar 30, 2024
1 parent cfda1e7 commit 0a03728
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/brad/front_end/front_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def __init__(
)
self._ping_watchdog_task: Optional[asyncio.Task[None]] = None

self._is_stub_mode = self._config.stub_mode_path is not None
self._is_stub_mode = self._config.stub_mode_path() is not None

async def serve_forever(self):
await self._run_setup()
Expand Down
2 changes: 1 addition & 1 deletion src/brad/front_end/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def create_new_session(self) -> Tuple[SessionId, Session]:
routing_policy_override == RoutingPolicy.ForestTableSelectivity
or routing_policy_override == RoutingPolicy.Default
):
if self._config.stub_mode_path is None:
if self._config.stub_mode_path() is not None:
estimator = await PostgresEstimator.connect(
self._schema_name, self._config
)
Expand Down

0 comments on commit 0a03728

Please sign in to comment.