MCPcopy
hub / github.com/dropbox/godropbox / newInstancePool

Method newInstancePool

net2/http2/load_balanced_pool.go:150–153  ·  view source on GitHub ↗
(info LBPoolInstanceInfo)

Source from the content-addressed store, hash-verified

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

Callers 1

UpdateMethod · 0.95

Calls 1

NewSimplePoolFunction · 0.85

Tested by

no test coverage detected