Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion featureflags/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class Config(BaseSettings):
sentry: SentrySettings

app: AppSettings
rpc: RpcSettings
rpc: RpcSettings | None = None
http: HttpSettings


Expand Down
4 changes: 4 additions & 0 deletions featureflags/rpc/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ async def create_server(


async def main() -> None:

if config.rpc is None:
raise ValueError("GRPC configuration is not set, check your config")

async with contextlib.AsyncExitStack() as stack:
container = Container()
await container.init_resources()
Expand Down