(info LBPoolInstanceInfo)
| 148 | } |
| 149 | |
| 150 | func (pool *LoadBalancedPool) newInstancePool(info LBPoolInstanceInfo) *instancePool { |
| 151 | simplePool := NewSimplePool(info.Addr, pool.params) |
| 152 | return &instancePool{SimplePool: *simplePool, instanceId: info.InstanceId} |
| 153 | } |
| 154 | |
| 155 | func (pool *LoadBalancedPool) sortInstances(instances instancePoolSlice, hashes []uint32) { |
| 156 | switch pool.strategy { |