refactor: event is_ephemeral method

This commit is contained in:
Greg Heartsfield
2023-01-24 08:04:42 -06:00
parent 25752abe6b
commit 5c07b2eca5
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -212,9 +212,9 @@ pub async fn db_writer(
}
// TODO: cache recent list of authors to remove a DB call.
let start = Instant::now();
if event.kind >= 20000 && event.kind < 30000 {
if event.is_ephemeral() {
bcast_tx.send(event.clone()).ok();
info!(
debug!(
"published ephemeral event: {:?} from: {:?} in: {:?}",
event.get_event_id_prefix(),
event.get_author_prefix(),