attempt reconnects every 4 seconds instead of 60

Changelog-Fixed: Damus will now stay connected at all times
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-10-16 11:05:19 -07:00
parent 2c4c392b76
commit 054714794d
2 changed files with 3 additions and 12 deletions

View File

@@ -190,15 +190,6 @@ class HomeModel: ObservableObject {
func handle_event(relay_id: String, conn_event: NostrConnectionEvent) {
switch conn_event {
case .ws_event(let ev):
/*
if let wsev = ws_nostr_event(relay: relay_id, ev: ev) {
wsev.flags |= 1
self.events.insert(wsev, at: 0)
}
*/
switch ev {
case .connected:
if !done_init {
@@ -224,8 +215,6 @@ class HomeModel: ObservableObject {
break
}
update_signal_from_pool(signal: self.signal, pool: self.pool)
print("ws_event \(ev)")
case .nostr_event(let ev):
@@ -603,3 +592,4 @@ func remove_bootstrap_nodes(_ damus_state: DamusState) {
}
}
}