postbox: try flushing events every second

relying on network activity for flushing is not reliable and is causing
delays in zapping
This commit is contained in:
William Casarin
2023-05-14 00:12:51 -07:00
parent 8fb5b4f49c
commit 02d99f7340
2 changed files with 6 additions and 2 deletions

View File

@@ -93,8 +93,6 @@ class PostBox {
}
func handle_event(relay_id: String, _ ev: NostrConnectionEvent) {
try_flushing_events()
guard case .nostr_event(let resp) = ev else {
return
}