MCPcopy Create free account
hub / github.com/Azure/peerd / getP2pSasUrls

Function getP2pSasUrls

tests/random/random.go:129–135  ·  view source on GitHub ↗

getP2pSasUrls returns the SAS URLs for the p2p network

(upstreamSasUrls []string, proxyHost string)

Source from the content-addressed store, hash-verified

127
128// getP2pSasUrls returns the SAS URLs for the p2p network
129func getP2pSasUrls(upstreamSasUrls []string, proxyHost string) []string {
130 p2pSasUrls := make([]string, len(upstreamSasUrls))
131 for _, s := range upstreamSasUrls {
132 p2pSasUrls = append(p2pSasUrls, proxyHost+"/blobs/"+s)
133 }
134 return p2pSasUrls
135}
136
137// downloadSASURLs downloads the SAS URLs in a group and measures the download speed
138func downloadSASURLs(l *zerolog.Logger, group []string) ([]float64, int) {

Callers 1

RandomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected