@@ -10,7 +10,6 @@ import {
1010 SharedWebStreamingSyncImplementationOptions ,
1111 WebRemote
1212} from '@powersync/web' ;
13- import { Mutex } from 'async-mutex' ;
1413
1514import { beforeAll , describe , expect , it , vi } from 'vitest' ;
1615import { WebDBAdapter } from '../src/db/adapters/WebDBAdapter' ;
@@ -126,7 +125,7 @@ describe('Multiple Instances', { sequential: true }, () => {
126125 // They need to use the same identifier to use the same shared worker.
127126 const identifier = 'streaming-sync-shared' ;
128127 const syncOptions1 : SharedWebStreamingSyncImplementationOptions = {
129- adapter : new SqliteBucketStorage ( db . database , new Mutex ( ) ) ,
128+ adapter : new SqliteBucketStorage ( db . database ) ,
130129 remote : new WebRemote ( connector1 ) ,
131130 uploadCrud : async ( ) => {
132131 await connector1 . uploadData ( db ) ;
@@ -140,7 +139,7 @@ describe('Multiple Instances', { sequential: true }, () => {
140139 // Generate the second streaming sync implementation
141140 const connector2 = new TestConnector ( ) ;
142141 const syncOptions2 : SharedWebStreamingSyncImplementationOptions = {
143- adapter : new SqliteBucketStorage ( db . database , new Mutex ( ) ) ,
142+ adapter : new SqliteBucketStorage ( db . database ) ,
144143 remote : new WebRemote ( connector1 ) ,
145144 uploadCrud : async ( ) => {
146145 await connector2 . uploadData ( db ) ;
@@ -190,7 +189,7 @@ describe('Multiple Instances', { sequential: true }, () => {
190189
191190 // Create the first streaming client
192191 const stream1 = new SharedWebStreamingSyncImplementation ( {
193- adapter : new SqliteBucketStorage ( db . database , new Mutex ( ) ) ,
192+ adapter : new SqliteBucketStorage ( db . database ) ,
194193 remote : new WebRemote ( connector1 ) ,
195194 uploadCrud : async ( ) => {
196195 triggerUpload1 ( ) ;
@@ -216,7 +215,7 @@ describe('Multiple Instances', { sequential: true }, () => {
216215 } ) ;
217216
218217 const stream2 = new SharedWebStreamingSyncImplementation ( {
219- adapter : new SqliteBucketStorage ( db . database , new Mutex ( ) ) ,
218+ adapter : new SqliteBucketStorage ( db . database ) ,
220219 remote : new WebRemote ( connector1 ) ,
221220 uploadCrud : async ( ) => {
222221 triggerUpload2 ( ) ;
0 commit comments