mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-22 00:59:07 -05:00
fix: send OK
message for ephemeral events
4b9f13d983/01.md (L153)
Signed-off-by: Greg Heartsfield <scsibug@imap.cc>
This commit is contained in:
parent
24b1705a08
commit
a7b169c0d3
|
@ -401,6 +401,9 @@ pub async fn db_writer(
|
||||||
start.elapsed()
|
start.elapsed()
|
||||||
);
|
);
|
||||||
event_write = true;
|
event_write = true;
|
||||||
|
|
||||||
|
// send OK message
|
||||||
|
notice_tx.try_send(Notice::saved(event.id)).ok();
|
||||||
} else {
|
} else {
|
||||||
match repo.write_event(&event).await {
|
match repo.write_event(&event).await {
|
||||||
Ok(updated) => {
|
Ok(updated) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user