Skip to content

Commit

Permalink
Satisfy aiohttp's deprecation of shutdown timeout kwargs
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Vasilyev <[email protected]>
  • Loading branch information
nolar committed Jan 19, 2024
1 parent 9cb8351 commit 1b7f4e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kopf/_core/engines/probing.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ async def get_health(
app = aiohttp.web.Application()
app.add_routes([aiohttp.web.get(path, get_health)])

runner = aiohttp.web.AppRunner(app, handle_signals=False)
runner = aiohttp.web.AppRunner(app, handle_signals=False, shutdown_timeout=1.0)
await runner.setup()

site = aiohttp.web.TCPSite(runner, host, port, shutdown_timeout=1.0)
site = aiohttp.web.TCPSite(runner, host, port)
await site.start()

# Log with the actual URL: normalised, with hostname/port set.
Expand Down

0 comments on commit 1b7f4e8

Please sign in to comment.