Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
31
func
NewRoundRobinLoadBalancer() LoadBalancer {
32
lb := &roundRobinLoadBalancer{
33
mu: &sync.Mutex{},
34
}
35
lb.hosts.Store(make([]*Host, 0))
36
return
lb
37
}
38
39
type
roundRobinLoadBalancer
struct
{
40
hosts atomic.Value
Callers
2
Connect
Method · 0.92
TestRoundRobinLoadBalancer_NewQueryPlan
Function · 0.85
Calls
1
Store
Method · 0.65
Tested by
1
TestRoundRobinLoadBalancer_NewQueryPlan
Function · 0.68