Skip to content

Commit

Permalink
fix(sync): remove bug-causing workaround for spurious small db files (f…
Browse files Browse the repository at this point in the history
…ixes #466) (#492)
  • Loading branch information
ErikBjare authored Sep 23, 2024
1 parent b574baf commit 5738246
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions aw-sync/src/sync_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ pub fn pull(host: &str, client: &AwClient) -> Result<(), Box<dyn Error>> {
})
.collect::<Vec<_>>();

// filter out dbs that are smaller than 50kB (workaround for trying to sync empty database
// files that are spuriously created somewhere)
let dbs = dbs
.into_iter()
.filter(|entry| entry.metadata().map(|m| m.len() > 50_000).unwrap_or(false))
.collect::<Vec<_>>();

// if more than one db, warn and use the largest one
if dbs.len() > 1 {
warn!(
Expand Down

0 comments on commit 5738246

Please sign in to comment.