tracks lexicons and how many times they appeared on the jetstream

fix(server): only push for sync if we have anything to sync

ptr.pet d808716d 8bbc0246

verified
Changed files
+7 -5
server
src
db
+7 -5
server/src/db/mod.rs
···
}
}
let _span = handle.span().entered();
-
tracing::info!(
-
{blocks = %nsid_data.len(), count = %total_count},
-
"will encode & sync",
-
);
-
data.push(nsid_data);
+
if nsid_data.len() > 0 {
+
tracing::info!(
+
{blocks = %nsid_data.len(), count = %total_count},
+
"will encode & sync",
+
);
+
data.push(nsid_data);
+
}
}
drop(_guard);