getP2pSasUrls returns the SAS URLs for the p2p network
(upstreamSasUrls []string, proxyHost string)
| 127 | |
| 128 | // getP2pSasUrls returns the SAS URLs for the p2p network |
| 129 | func 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 |
| 138 | func downloadSASURLs(l *zerolog.Logger, group []string) ([]float64, int) { |