mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-20 08:05:33 +03:00
await the db commit in the async version of set_db_version (#10906)
This commit is contained in:
parent
1bcf409ee1
commit
efcf0cf0ad
@ -19,7 +19,7 @@ async def lookup_db_version(db: aiosqlite.Connection) -> int:
|
||||
async def set_db_version_async(db: aiosqlite.Connection, version: int) -> None:
|
||||
await db.execute("CREATE TABLE database_version(version int)")
|
||||
await db.execute("INSERT INTO database_version VALUES (?)", (version,))
|
||||
db.commit()
|
||||
await db.commit()
|
||||
|
||||
|
||||
def set_db_version(db: sqlite3.Connection, version: int) -> None:
|
||||
|
Loading…
Reference in New Issue
Block a user