Skip to content

Commit

Permalink
commented unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Nov 16, 2023
1 parent 58832e6 commit a5e2601
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions announcements/announcements.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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),
Expand Down

0 comments on commit a5e2601

Please sign in to comment.