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

Function overrideAdaptiveThrottler

balancer/rls/helpers_test.go:113–117  ·  view source on GitHub ↗
(t *testing.T, f *fakeThrottler)

Source from the content-addressed store, hash-verified

111}
112
113func overrideAdaptiveThrottler(t *testing.T, f *fakeThrottler) {
114 origAdaptiveThrottler := newAdaptiveThrottler
115 newAdaptiveThrottler = func() adaptiveThrottler { return f }
116 t.Cleanup(func() { newAdaptiveThrottler = origAdaptiveThrottler })
117}
118
119// buildBasicRLSConfig constructs a basic service config for the RLS LB policy
120// with header matching rules. This expects the passed child policy name to

Calls

no outgoing calls

Tested by

no test coverage detected