Skip to content

Commit 2cd3c43

Browse files
Add app metadata for Rust client.
1 parent 478ef35 commit 2cd3c43

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,14 @@ The next upload iteration will be delayed.`);
954954
const syncOptions: SyncStreamOptions = {
955955
path: '/sync/stream',
956956
abortSignal: abortController.signal,
957-
data: instr.request
957+
data: {
958+
...instr.request,
959+
// FIXME the Rust core does not currently pass metadata through
960+
app_metadata: {
961+
...resolvedOptions.appMetadata,
962+
...instr.request.app_metadata
963+
}
964+
}
958965
};
959966

960967
if (resolvedOptions.connectionMethod == SyncStreamConnectionMethod.HTTP) {

0 commit comments

Comments
 (0)