feat(api): use a different name for async psycopg connection.
This commit is contained in:
parent
00b144da00
commit
5c4f1ea609
2 changed files with 2 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ async def lifespan(app: FastAPI):
|
|||
"user": config("pg_user", default="orpy"),
|
||||
"password": config("pg_password", default="orpy"),
|
||||
"port": config("pg_port", cast=int, default=5432),
|
||||
"application_name": config("APP_NAME", default="PY"),
|
||||
"application_name": "AIO" + config("APP_NAME", default="PY"),
|
||||
}
|
||||
|
||||
database = psycopg_pool.AsyncConnectionPool(kwargs=database, connection_class=ORPYAsyncConnection)
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ async def lifespan(app: FastAPI):
|
|||
"user": config("pg_user", default="orpy"),
|
||||
"password": config("pg_password", default="orpy"),
|
||||
"port": config("pg_port", cast=int, default=5432),
|
||||
"application_name": config("APP_NAME", default="PY"),
|
||||
"application_name": "AIO" + config("APP_NAME", default="PY"),
|
||||
}
|
||||
|
||||
database = psycopg_pool.AsyncConnectionPool(kwargs=database, connection_class=ORPYAsyncConnection)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue