Skip to content

Commit 5738246

Browse files
authored
fix(sync): remove bug-causing workaround for spurious small db files (fixes #466) (#492)
1 parent b574baf commit 5738246

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

aw-sync/src/sync_wrapper.rs

-7
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ pub fn pull(host: &str, client: &AwClient) -> Result<(), Box<dyn Error>> {
4141
})
4242
.collect::<Vec<_>>();
4343

44-
// filter out dbs that are smaller than 50kB (workaround for trying to sync empty database
45-
// files that are spuriously created somewhere)
46-
let dbs = dbs
47-
.into_iter()
48-
.filter(|entry| entry.metadata().map(|m| m.len() > 50_000).unwrap_or(false))
49-
.collect::<Vec<_>>();
50-
5144
// if more than one db, warn and use the largest one
5245
if dbs.len() > 1 {
5346
warn!(

0 commit comments

Comments
 (0)