Skip to content

Commit

Permalink
libsql: Fix build on older Rust toolchains
Browse files Browse the repository at this point in the history
The JavaScript SDK is unfortunately stuck with Rust 1.78:

tursodatabase/libsql-js#104

We should fix that, but since that's hard, let's just once again paper
over it by fixing build on older Rust toolchains.
  • Loading branch information
penberg committed Dec 6, 2024
1 parent 6a82223 commit 7ddc4f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsql/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ impl SyncContext {
async fn read_metadata(&mut self) -> Result<()> {
let path = format!("{}-info", self.db_path);

if !std::fs::exists(&path).map_err(SyncError::io("metadata file exists"))? {
if !Path::new(&path).try_exists().map_err(SyncError::io("metadata file exists"))? {
tracing::debug!("no metadata info file found");
return Ok(());
}
Expand Down

0 comments on commit 7ddc4f9

Please sign in to comment.