(smap *cluster.Smap)
| 116 | } |
| 117 | |
| 118 | func getRandomProxyURL(smap *cluster.Smap) string { |
| 119 | proxies := smap.Pmap.ActiveNodes() |
| 120 | return proxies[rand.Intn(len(proxies))].URL(cmn.NetPublic) |
| 121 | } |
| 122 | |
| 123 | // Return the first proxy from smap that is IC member. The primary |
| 124 | // proxy has higher priority. |
no test coverage detected