Skip to content

Commit 476fdf7

Browse files
committed
Review feedback
1 parent 0c82473 commit 476fdf7

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.changeset/light-clocks-hang.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
22
'@powersync/common': patch
3+
'@powersync/node': patch
4+
'@powersync/web': patch
5+
'@powersync/react-native': patch
36
---
47

58
Rust client: Properly upload CRUD entries made while offline.

packages/common/src/client/sync/stream/AbstractStreamingSyncImplementation.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,6 @@ The next upload iteration will be delayed.`);
999999
);
10001000

10011001
this.notifyCompletedUploads = () => {
1002-
console.log('notify completed');
10031002
controlInvocations?.enqueueData({ command: PowerSyncControlCommand.NOTIFY_CRUD_UPLOAD_COMPLETED });
10041003
};
10051004
await receivingLines;

packages/common/src/utils/DataStream.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class DataStream<Data extends any = any> extends BaseObserver<DataStreamL
3939
protected isClosed: boolean;
4040

4141
protected processingPromise: Promise<void> | null;
42-
protected notifyDataAdded: ((_: null) => void) | null;
42+
protected notifyDataAdded: (() => void) | null;
4343

4444
protected logger: ILogger;
4545

@@ -91,7 +91,7 @@ export class DataStream<Data extends any = any> extends BaseObserver<DataStreamL
9191
}
9292

9393
this.dataQueue.push(data);
94-
this.notifyDataAdded?.(null);
94+
this.notifyDataAdded?.();
9595

9696
this.processQueue();
9797
}
@@ -194,7 +194,7 @@ export class DataStream<Data extends any = any> extends BaseObserver<DataStreamL
194194
}
195195

196196
if (this.dataQueue.length <= this.lowWatermark) {
197-
const dataAdded = new Promise((resolve) => {
197+
const dataAdded = new Promise<void>((resolve) => {
198198
this.notifyDataAdded = resolve;
199199
});
200200

0 commit comments

Comments
 (0)