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
+7 -5
+7 -5
server/src/db/mod.rs
··· 193 193 } 194 194 } 195 195 let _span = handle.span().entered(); 196 - tracing::info!( 197 - {blocks = %nsid_data.len(), count = %total_count}, 198 - "will encode & sync", 199 - ); 200 - data.push(nsid_data); 196 + if nsid_data.len() > 0 { 197 + tracing::info!( 198 + {blocks = %nsid_data.len(), count = %total_count}, 199 + "will encode & sync", 200 + ); 201 + data.push(nsid_data); 202 + } 201 203 } 202 204 drop(_guard); 203 205