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

Method copy

proxycore/lb.go:65–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63}
64
65func (l *roundRobinLoadBalancer) copy() []*Host {
66 hosts := l.hosts.Load().([]*Host)
67 cpy := make([]*Host, len(hosts))
68 copy(cpy, hosts)
69 return cpy
70}
71
72func (l *roundRobinLoadBalancer) NewQueryPlan() QueryPlan {
73 return &roundRobinQueryPlan{

Callers 1

OnEventMethod · 0.95

Calls 1

LoadMethod · 0.65

Tested by

no test coverage detected