2021-07-22 04:09:49 +08:00
|
|
|
package peerstore
|
|
|
|
|
|
|
|
import (
|
2022-08-18 23:54:48 +08:00
|
|
|
"github.com/libp2p/go-libp2p/core/peer"
|
|
|
|
"github.com/libp2p/go-libp2p/core/peerstore"
|
2021-07-22 04:09:49 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// AddrInfos returns an AddrInfo for each specified peer ID, in-order.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/peerstore.AddrInfos instead
|
2021-07-22 04:09:49 +08:00
|
|
|
func AddrInfos(ps Peerstore, peers []peer.ID) []peer.AddrInfo {
|
2022-08-18 23:54:48 +08:00
|
|
|
return peerstore.AddrInfos(ps, peers)
|
2021-07-22 04:09:49 +08:00
|
|
|
}
|