Skip to content

Commit

Permalink
chore: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
2color committed Dec 10, 2024
1 parent c5abeec commit 0cc76f9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions server_cached_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/ipfs/go-cid"
"github.com/libp2p/go-libp2p/core/peer"
"github.com/libp2p/go-libp2p/core/routing"
ma "github.com/multiformats/go-multiaddr"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
Expand Down Expand Up @@ -242,11 +241,3 @@ func (it *cacheFallbackIter) Close() error {
}()
return it.sourceIter.Close()
}

func ToMultiaddrs(addrs []ma.Multiaddr) []types.Multiaddr {
var result []types.Multiaddr
for _, addr := range addrs {
result = append(result, types.Multiaddr{Multiaddr: addr})
}
return result
}

0 comments on commit 0cc76f9

Please sign in to comment.