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
|
||||
(vals (:whisper current-fleet)))
|
||||
(vals (:static current-fleet))))
|
||||
:WakuNodes wakuv2-nodes
|
||||
:WakuStoreNodes wakuv2-nodes
|
||||
:RelayNodes wakuv2-nodes
|
||||
:StoreNodes wakuv2-nodes
|
||||
:RendezvousNodes (if wakuv2-enabled [] rendezvous-nodes)})
|
||||
|
||||
:always
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
[{:keys [db]} peer-stats]
|
||||
(let [previous-stats (:peer-stats db)]
|
||||
{:db (assoc db :peer-stats peer-stats
|
||||
:peers-count (count (:Peers peer-stats)))}))
|
||||
:peers-count (count (:peers peer-stats)))}))
|
||||
|
||||
(fx/defn process
|
||||
{:events [:signals/signal-received]}
|
||||
|
|
|
@ -482,7 +482,7 @@
|
|||
;; then fetch connectivity status from
|
||||
;; peer-stats (populated from "wakuv2.peerstats" status-go 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
|
||||
:offline?
|
||||
|
|
Loading…
Reference in New Issue