Skip to content

Commit

Permalink
add application_name to pg conn
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Sep 2, 2024
1 parent 15ab0b0 commit b185aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class QueueItem:
http_client = httpx.AsyncClient(
follow_redirects=False, headers={"user-agent": "trim21/submit-patch"}
)
pg = asyncpg.create_pool(dsn=PG_DSN)
pg = asyncpg.create_pool(dsn=PG_DSN, server_settings={"application_name": "patch"})


async def pg_pool_startup(*args: Any, **kwargs: Any) -> None:
Expand Down

0 comments on commit b185aa6

Please sign in to comment.