fix: addPeers

This commit is contained in:
Richard Ramos 2023-06-01 08:26:03 -04:00
parent 5d514ddd6a
commit 9207dbcb4a
No known key found for this signature in database
GPG Key ID: 1CE87DB518195760
1 changed files with 5 additions and 5 deletions

View File

@ -295,11 +295,6 @@ func Execute(options Options) {
failOnErr(err, "Wakunode")
addPeers(wakuNode, options.Store.Nodes, store.StoreID_v20beta4)
addPeers(wakuNode, options.LightPush.Nodes, lightpush.LightPushID_v20beta1)
addPeers(wakuNode, options.Rendezvous.Nodes, rendezvous.RendezvousID)
addPeers(wakuNode, options.Filter.Nodes, filter.FilterSubscribeID_v20beta1)
if options.Filter.UseV1 {
addPeers(wakuNode, options.Filter.NodesV1, legacy_filter.FilterID_v20beta1)
}
@ -308,6 +303,11 @@ func Execute(options Options) {
logger.Fatal("starting waku node", zap.Error(err))
}
addPeers(wakuNode, options.Store.Nodes, store.StoreID_v20beta4)
addPeers(wakuNode, options.LightPush.Nodes, lightpush.LightPushID_v20beta1)
addPeers(wakuNode, options.Rendezvous.Nodes, rendezvous.RendezvousID)
addPeers(wakuNode, options.Filter.Nodes, filter.FilterSubscribeID_v20beta1)
if options.DiscV5.Enable {
if err = wakuNode.DiscV5().Start(ctx); err != nil {
logger.Fatal("starting discovery v5", zap.Error(err))