File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
packages/powersync/lib/src Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ Future<void> _powerSyncDatabaseIsolate(
332332 updateStream: updateController.stream,
333333 retryDelay: args.retryDelay,
334334 client: http.Client ());
335- sync .streamingSync (null );
335+ sync .streamingSync ();
336336 sync .statusStream.listen ((event) {
337337 sPort.send (['status' , event]);
338338 });
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ class PowerSyncDatabaseImpl
144144 sync .statusStream.listen ((event) {
145145 setStatus (event);
146146 });
147- sync .streamingSync (disconnecter);
147+ sync .streamingSync (abortController : disconnecter);
148148 }
149149
150150 /// Takes a read lock, without starting a transaction.
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class StreamingSyncImplementation {
4949 statusStream = _statusStreamController.stream;
5050 }
5151
52- Future <void > streamingSync (AbortController ? abortController) async {
52+ Future <void > streamingSync ({ AbortController ? abortController} ) async {
5353 crudLoop ();
5454 var invalidCredentials = false ;
5555 while (true ) {
@@ -65,7 +65,7 @@ class StreamingSyncImplementation {
6565 await invalidCredentialsCallback !();
6666 invalidCredentials = false ;
6767 }
68- await streamingSyncIteration (abortController);
68+ await streamingSyncIteration (abortController: abortController );
6969 // Continue immediately
7070 } catch (e, stacktrace) {
7171 final message = _syncErrorMessage (e);
@@ -178,7 +178,8 @@ class StreamingSyncImplementation {
178178 _statusStreamController.add (newStatus);
179179 }
180180
181- Future <bool > streamingSyncIteration (AbortController ? abortController) async {
181+ Future <bool > streamingSyncIteration (
182+ {AbortController ? abortController}) async {
182183 adapter.startSession ();
183184 final bucketEntries = await adapter.getBucketStates ();
184185
You can’t perform that action at this time.
0 commit comments