Skip to content

Commit

Permalink
fix kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
soof-golan committed Oct 10, 2024
1 parent 096d122 commit 1e7fd0b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ async def lifespan(_app: fastapi.FastAPI) -> typing.AsyncIterator[State]:
session_maker = async_sessionmaker(engine)
try:
await db_connection_check(engine)
async with httpx.AsyncClient("https://api.github.com") as gh_http_client, httpx.AsyncClient("https://challenges.cloudflare.com") as cf_http_client:
async with httpx.AsyncClient(
base_url="https://api.github.com"
) as gh_http_client, httpx.AsyncClient(
base_url="https://challenges.cloudflare.com"
) as cf_http_client:
yield {
"gh_http_client": gh_http_client,
"cf_http_client": cf_http_client,
Expand Down

0 comments on commit 1e7fd0b

Please sign in to comment.