fix race condition by setting the peers on init

This commit is contained in:
Richard Ramos 2021-08-31 18:51:37 -04:00 committed by Iuri Matias
parent 4fa2f5c472
commit eac373600e
1 changed files with 0 additions and 5 deletions

View File

@ -44,11 +44,6 @@ proc init*(self: NodeController) =
var data = PeerStatsSignal(e)
self.setPeers(data.peers)
self.status.events.on(SignalType.PeerStats.event) do(e:Args):
var data = PeerStatsSignal(e)
self.status.network.peerSummaryChange(data.peers)
self.view.setPeerSize(data.peers.len)
self.status.events.on(SignalType.Stats.event) do (e:Args):
self.view.setStats(StatsSignal(e).stats)
if not self.isWakuV2: self.view.fetchBitsSet()