MCPcopy Create free account
hub / github.com/datastax/cql-proxy / NewRoundRobinLoadBalancer

Function NewRoundRobinLoadBalancer

proxycore/lb.go:31–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31func NewRoundRobinLoadBalancer() LoadBalancer {
32 lb := &roundRobinLoadBalancer{
33 mu: &sync.Mutex{},
34 }
35 lb.hosts.Store(make([]*Host, 0))
36 return lb
37}
38
39type roundRobinLoadBalancer struct {
40 hosts atomic.Value

Callers 2

ConnectMethod · 0.92

Calls 1

StoreMethod · 0.65

Tested by 1