Skip to content

Commit 4ef5e81

Browse files
authored
Use /info to probe if the server supports sync (#2088)
fixes #2087 Instead of using `/sync/0/0/0` use info endpoint which is supported by the new server only, to identify the sync protocol URL
2 parents 0ef59ff + 93172f8 commit 4ef5e81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libsql/src/database/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ cfg_replication! {
374374
} else {
375375
url.to_string()
376376
};
377-
let req = http::Request::get(format!("{prefix}/sync/0/0/0"))
377+
let req = http::Request::get(format!("{prefix}/info"))
378378
.header("Authorization", format!("Bearer {}", auth_token))
379379
.body(hyper::Body::empty())
380380
.unwrap();

0 commit comments

Comments
 (0)