Skip to content

Commit 93172f8

Browse files
committed
Use /info to probe if the server supports sync
Instead of using `/sync/0/0/0` use info endpoint which is supported by the new server only, to identify the sync protocol URL
1 parent 5d57c82 commit 93172f8

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
@@ -372,7 +372,7 @@ cfg_replication! {
372372
} else {
373373
url.to_string()
374374
};
375-
let req = http::Request::get(format!("{prefix}/sync/0/0/0"))
375+
let req = http::Request::get(format!("{prefix}/info"))
376376
.header("Authorization", format!("Bearer {}", auth_token))
377377
.body(hyper::Body::empty())
378378
.unwrap();

0 commit comments

Comments
 (0)