Skip to content

Commit

Permalink
feat:go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
yanzq committed Jul 25, 2024
1 parent 91e4b44 commit ca2e095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion retrievalprovider/transports.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func NewTransportsListener(h host.Host, cfg *config.MarketConfig) (*TransportsLi
var maddrs []multiaddr.Multiaddr
switch {
case len(cfg.Libp2p.AnnounceAddresses) > 0:
for i, _ := range cfg.Libp2p.AnnounceAddresses {
for i := range cfg.Libp2p.AnnounceAddresses {
maddr, err := multiaddr.NewMultiaddr(cfg.Libp2p.AnnounceAddresses[i])
if err == nil {
maddrs = append(maddrs, maddr)
Expand Down

0 comments on commit ca2e095

Please sign in to comment.