Skip to content

Commit 3339926

Browse files
code cleanup
1 parent 6a4e650 commit 3339926

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

packages/powersync/lib/src/streaming_sync.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,6 @@ class StreamingSyncImplementation {
158158
}
159159
}
160160
} finally {
161-
// The client should no longer be connected at this point
162-
// Adding this update allows for breaking out of an in-progress updateLoop
163-
_updateStatus(connected: false);
164161
_abort!.completeAbort();
165162
}
166163
}
@@ -493,7 +490,7 @@ class StreamingSyncImplementation {
493490
}
494491
}
495492

496-
/// Delays the standard `retryDelay` Duration, but exists early if
493+
/// Delays the standard `retryDelay` Duration, but exits early if
497494
/// an abort has been requested.
498495
Future<void> _delayRetry() async {
499496
await Future.any([Future.delayed(retryDelay), _abort!.onAbort]);

packages/powersync/test/connected_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void main() {
2121
});
2222

2323
tearDown(() async {
24-
// await testUtils.cleanDb(path: path);
24+
await testUtils.cleanDb(path: path);
2525
});
2626

2727
createTestServer() async {

packages/powersync/test/server/sync_server/mock_sync_server.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ class TestHttpServerHelper {
2121
// Respond immediately with a stream
2222
return Response.ok(_controller.stream.transform(utf8.encoder),
2323
headers: {
24-
'Content-Type': 'text/event-stream',
24+
'Content-Type': 'application/x-ndjson',
2525
'Cache-Control': 'no-cache',
2626
'Connection': 'keep-alive',
27-
'Transfer-Encoding': 'identity',
2827
},
2928
context: {
3029
"shelf.io.buffer_output": false

0 commit comments

Comments
 (0)