Skip to content

Commit 4f92bb2

Browse files
committed
feat: update response handling to return Response objects for JSON endpoints
1 parent 6779469 commit 4f92bb2

File tree

1 file changed

+4
-4
lines changed
  • frameworks/Python/litestar

1 file changed

+4
-4
lines changed

frameworks/Python/litestar/app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ def get_num_queries(queries):
3737

3838
async def setup_database():
3939
return await asyncpg.create_pool(
40-
user=os.getenv("PGUSER", "postgres"),
41-
password=os.getenv("PGPASS", "password"),
42-
database="postgres",
43-
host="localhost",
40+
user=os.getenv("PGUSER", "benchmarkdbuser"),
41+
password=os.getenv("PGPASS", "benchmarkdbpass"),
42+
database="hello_world",
43+
host="tfb-database",
4444
port=5432,
4545
min_size=MIN_POOL_SIZE,
4646
max_size=MAX_POOL_SIZE,

0 commit comments

Comments
 (0)