Skip to content

Commit 1530b5a

Browse files
authored
roll back
1 parent 9129cab commit 1530b5a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

frameworks/Python/blacksheep/app-socketify.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,8 @@ async def db_updates_test(request):
111111
), key=lambda x: x[1])
112112
worlds = [{"id": row_id, "randomNumber": number} for row_id, number in updates]
113113
async with db_pool.acquire() as connection:
114-
statement = await connection.prepare(READ_ROW_SQL)
115114
for row_id, _ in updates:
116-
await statement.fetch_val([row_id])
115+
await connection.fetch_val(READ_ROW_SQL, [row_id])
117116
# await db_conn.executemany(WRITE_ROW_SQL, updates)
118117
await connection.execute_many(WRITE_ROW_SQL, updates)
119118
raise Exception("connect error")

0 commit comments

Comments
 (0)