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

Method NewQueryPlan

proxycore/lb.go:72–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72func (l *roundRobinLoadBalancer) NewQueryPlan() QueryPlan {
73 return &roundRobinQueryPlan{
74 hosts: l.hosts.Load().([]*Host),
75 offset: atomic.AddUint32(&l.index, 1) - 1,
76 index: 0,
77 }
78}
79
80type roundRobinQueryPlan struct {
81 hosts []*Host

Callers

nothing calls this directly

Calls 1

LoadMethod · 0.65

Tested by

no test coverage detected