fix(db): remove extraneous lock

This commit is contained in:
psychedelicious 2023-12-05 14:49:00 +11:00
parent f8e35aec7b
commit f56c47b550

View File

@ -36,7 +36,6 @@ class SqliteDatabase:
if self.db_path == sqlite_memory:
return
initial_db_size = Path(self.db_path).stat().st_size
self.lock.acquire()
self.conn.execute("VACUUM;")
self.conn.commit()
final_db_size = Path(self.db_path).stat().st_size