nostr-rs-relay

My dev fork of nostr-rs-relay
git clone git://jb55.com/nostr-rs-relay
Log | Files | Refs | README | LICENSE

commit 14b5a51e3a6786c358f8e559848f1759a9ddfc62
parent 8ecce3f5660d3cee805b13f9667cd56d237c3ac7
Author: Greg Heartsfield <scsibug@imap.cc>
Date:   Fri,  4 Nov 2022 07:55:38 -0500

fix: log ephemeral events after send

Diffstat:
Msrc/db.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/db.rs b/src/db.rs @@ -216,13 +216,13 @@ 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 { + bcast_tx.send(event.clone()).ok(); info!( "published ephemeral event {:?} from {:?} in {:?}", event.get_event_id_prefix(), event.get_author_prefix(), start.elapsed() ); - bcast_tx.send(event.clone()).ok(); event_write = true } else { match write_event(&mut pool.get()?, &event) {