Skip to content

Commit

Permalink
Merge pull request #1870 from tursodatabase/fix-build-with-old-toolchain
Browse files Browse the repository at this point in the history
libsql: Fix build on older Rust toolchains
  • Loading branch information
penberg authored Dec 6, 2024
2 parents 105748d + 7ddc4f9 commit b8f30ff
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 b8f30ff

Please sign in to comment.