Skip to content

Commit aef8ad4

Browse files
authored
plumb connector through when syncing (#2030)
Right now, despite providing your own connector, the code unconditionally calls its own connect function. This has the side-effect of making sync incompatible with platforms which do not have native certs ready.
2 parents 10f5dd8 + 72f39d8 commit aef8ad4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libsql/src/database/builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ cfg_replication! {
402402
if res.status().is_success() {
403403
tracing::trace!("Using sync protocol v2 for {}", url);
404404
return Builder::new_synced_database(path, url, auth_token)
405+
.connector(connector)
405406
.remote_writes(true)
406407
.read_your_writes(read_your_writes)
407408
.build()

0 commit comments

Comments
 (0)