Skip to content

Commit 1ae3c5a

Browse files
committed
Inherit throttling behavior from sqlite_async.
1 parent 6a773d7 commit 1ae3c5a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/powersync/lib/src/web/powersync_db.worker.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ final class PowerSyncAsyncSqliteController extends AsyncSqliteController {
2020
@override
2121
Future<WorkerDatabase> openDatabase(
2222
WasmSqlite3 sqlite3, String path, String vfs) async {
23-
final db = sqlite3.open(path, vfs: vfs);
24-
setupPowerSyncDatabase(db);
25-
26-
return AsyncSqliteDatabase(database: db);
23+
final asyncDb = await super.openDatabase(sqlite3, path, vfs);
24+
setupPowerSyncDatabase(asyncDb.database);
25+
return asyncDb;
2726
}
2827

2928
@override

0 commit comments

Comments
 (0)