mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-13 18:25:45 +00:00
Fix field names related to Wakuv2 config
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
parent
6591611473
commit
21e4885fc9
@ -113,8 +113,8 @@
|
|||||||
(into (pick-nodes 2
|
(into (pick-nodes 2
|
||||||
(vals (:whisper current-fleet)))
|
(vals (:whisper current-fleet)))
|
||||||
(vals (:static current-fleet))))
|
(vals (:static current-fleet))))
|
||||||
:WakuNodes wakuv2-nodes
|
:RelayNodes wakuv2-nodes
|
||||||
:WakuStoreNodes wakuv2-nodes
|
:StoreNodes wakuv2-nodes
|
||||||
:RendezvousNodes (if wakuv2-enabled [] rendezvous-nodes)})
|
:RendezvousNodes (if wakuv2-enabled [] rendezvous-nodes)})
|
||||||
|
|
||||||
:always
|
:always
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
[{:keys [db]} peer-stats]
|
[{:keys [db]} peer-stats]
|
||||||
(let [previous-stats (:peer-stats db)]
|
(let [previous-stats (:peer-stats db)]
|
||||||
{:db (assoc db :peer-stats peer-stats
|
{:db (assoc db :peer-stats peer-stats
|
||||||
:peers-count (count (:Peers peer-stats)))}))
|
:peers-count (count (:peers peer-stats)))}))
|
||||||
|
|
||||||
(fx/defn process
|
(fx/defn process
|
||||||
{:events [:signals/signal-received]}
|
{:events [:signals/signal-received]}
|
||||||
|
@ -482,7 +482,7 @@
|
|||||||
;; then fetch connectivity status from
|
;; then fetch connectivity status from
|
||||||
;; peer-stats (populated from "wakuv2.peerstats" status-go signal)
|
;; peer-stats (populated from "wakuv2.peerstats" status-go signal)
|
||||||
;; Otherwise use peers-count fetched from "discovery.summary" signal
|
;; Otherwise use peers-count fetched from "discovery.summary" signal
|
||||||
(if wakuv2-flag (not (:IsOnline peer-stats)) (zero? peers-count))))
|
(if wakuv2-flag (not (:isOnline peer-stats)) (zero? peers-count))))
|
||||||
|
|
||||||
(re-frame/reg-sub
|
(re-frame/reg-sub
|
||||||
:offline?
|
:offline?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user