(c *routing.LBContext, index int)
| 135 | } |
| 136 | |
| 137 | func skipEndpoint(c *routing.LBContext, index int) bool { |
| 138 | host := c.Route.LBEndpoints[index].Host |
| 139 | for i := range c.LBEndpoints { |
| 140 | if c.LBEndpoints[i].Host == host { |
| 141 | return false |
| 142 | } |
| 143 | } |
| 144 | return true |
| 145 | } |
| 146 | |
| 147 | // Returns index in hash ring with the closest hash to key's hash |
| 148 | func (ch *consistentHash) searchRing(key string, ctx *routing.LBContext) int { |
no outgoing calls
no test coverage detected
searching dependent graphs…