Skip to content

Commit

Permalink
Update announcements.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Nov 16, 2023
1 parent 5510a19 commit b46b507
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 @@ -76,14 +76,14 @@ func (an *FxAnnouncements) Start(ctx context.Context, validator pubsub.Validator
// Parse the multiaddr
ma, err := multiaddr.NewMultiaddr(relay)
if err != nil {
fmt.Println("Error parsing multiaddr:", err)
log.Warnln("Error parsing multiaddr:", err)
continue
}

// Extract the peer ID
addrInfo, err := peer.AddrInfoFromP2pAddr(ma)
if err != nil {
fmt.Println("Error extracting peer ID:", err)
log.Warnln("Error extracting peer ID:", err)
continue
}
if addrInfo != nil {
Expand Down

0 comments on commit b46b507

Please sign in to comment.