Skip to content

Commit d59b54f

Browse files
committed
Document why binary data is set
1 parent 9373c07 commit d59b54f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/core/src/sync/streaming_sync.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,9 @@ impl StreamingSyncIteration {
589589
buckets: requests,
590590
include_checksum: true,
591591
raw_data: true,
592+
// Clients are not supposed to set this field, but old versions of the PowerSync service
593+
// will break if it's not set and the SDK requests sync data as BSON.
594+
// For details, see https://github.com/powersync-ja/powersync-service/pull/332
592595
binary_data: true,
593596
client_id: client_id(self.db)?,
594597
parameters: self.options.parameters.take(),

0 commit comments

Comments
 (0)