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

Function neverThrottlingThrottler

balancer/rls/helpers_test.go:95–100  ·  view source on GitHub ↗

neverThrottlingThrottler returns a fake throttler which never throttles.

()

Source from the content-addressed store, hash-verified

93
94// neverThrottlingThrottler returns a fake throttler which never throttles.
95func neverThrottlingThrottler() *fakeThrottler {
96 return &fakeThrottler{
97 throttleFunc: func() bool { return false },
98 throttleCh: make(chan struct{}, 1),
99 }
100}
101
102// oneTimeAllowingThrottler returns a fake throttler which does not throttle
103// requests until the client RPC succeeds, but throttles everything that comes

Calls

no outgoing calls

Tested by

no test coverage detected