Reduce battery usage by using exp backoff on connections

Changelog-Changed: Reduce battery usage by using exp backoff on connections
This commit is contained in:
Bryan Montz
2023-03-15 10:37:37 -06:00
committed by William Casarin
12 changed files with 323 additions and 161 deletions

View File

@@ -29,7 +29,7 @@ class ZapsModel: ObservableObject {
case .note(let note_target):
filter.referenced_ids = [note_target.note_id]
}
state.pool.subscribe(sub_id: zaps_subid, filters: [filter], handler: handle_event)
state.pool.subscribe_to(sub_id: zaps_subid, filters: [filter], handler: handle_event)
}
func unsubscribe() {