Skip to content

Commit 4f4678d

Browse files
committed
Review feedback
1 parent 3d5cbcd commit 4f4678d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

packages/common/src/client/sync/bucket/BucketStorageAdapter.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ export interface BucketChecksum {
5050
* Count of operations - informational only.
5151
*/
5252
count?: number;
53+
/**
54+
* The JavaScript client does not use this field, which is why it's defined to be `any`. We rely on the structure of
55+
* this interface to pass custom `BucketChecksum`s to the Rust client in unit tests, which so all fields need to be
56+
* present.
57+
*/
5358
subscriptions?: any;
5459
}
5560

packages/common/src/client/sync/stream/core-instruction.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ export function coreStatusToJs(status: CoreSyncStatus): sync_status.SyncStatusOp
8686
connected: status.connected,
8787
connecting: status.connecting,
8888
dataFlow: {
89+
// We expose downloading as a boolean field, the core extension reports download information as a nullable
90+
// download status. When that status is non-null, a download is in progress.
8991
downloading: status.downloading != null,
9092
downloadProgress: status.downloading?.buckets,
9193
internalStreamSubscriptions: status.streams

0 commit comments

Comments
 (0)