feat(NIP-15): Implement NIP15

NIP15 sends an EOSE notice to clients after all stored events are sent
to allow loading indicators and other use cases.
This commit is contained in:
Semisol
2022-05-30 21:43:00 -05:00
committed by Greg Heartsfield
parent 538d139ebf
commit a36ad378f6
3 changed files with 16 additions and 5 deletions
+6
View File
@@ -575,6 +575,12 @@ pub async fn db_query(
})
.ok();
}
query_tx
.blocking_send(QueryResult {
sub_id: sub.get_id(),
event: "EOSE".to_string(),
})
.ok();
debug!(
"query completed ({} rows) in {:?}",
row_count,