From a5e260114a176f4fd2a69cf755486e798b61c70a Mon Sep 17 00:00:00 2001 From: ehsan shariati Date: Thu, 16 Nov 2023 01:33:27 -0500 Subject: [PATCH] commented unused code --- announcements/announcements.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/announcements/announcements.go b/announcements/announcements.go index 16d5b8e..fefa886 100644 --- a/announcements/announcements.go +++ b/announcements/announcements.go @@ -71,7 +71,7 @@ func (an *FxAnnouncements) Start(ctx context.Context, validator pubsub.Validator gr := pubsub.DefaultGossipSubRouter(an.h) - var addrInfos []peer.AddrInfo + /*var addrInfos []peer.AddrInfo for _, relay := range an.relays { // Parse the multiaddr ma, err := multiaddr.NewMultiaddr(relay) @@ -89,7 +89,7 @@ func (an *FxAnnouncements) Start(ctx context.Context, validator pubsub.Validator if addrInfo != nil { addrInfos = append(addrInfos, *addrInfo) } - } + }*/ gsub, err := pubsub.NewGossipSubWithRouter(ctx, an.h, gr, pubsub.WithPeerExchange(true),