MCPcopy
hub / github.com/grpc/grpc-go / lazyPickFirstBuilder

Function lazyPickFirstBuilder

balancer/ringhash/ringhash.go:57–59  ·  view source on GitHub ↗
(cc balancer.ClientConn, opts balancer.BuildOptions)

Source from the content-addressed store, hash-verified

55const Name = "ring_hash_experimental"
56
57func lazyPickFirstBuilder(cc balancer.ClientConn, opts balancer.BuildOptions) balancer.Balancer {
58 return lazy.NewBalancer(cc, opts, balancer.Get(pickfirst.Name).Build)
59}
60
61func init() {
62 balancer.Register(bb{})

Callers

nothing calls this directly

Calls 2

NewBalancerFunction · 0.92
GetFunction · 0.92

Tested by

no test coverage detected