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

Function alwaysThrottlingThrottler

balancer/rls/helpers_test.go:87–92  ·  view source on GitHub ↗

alwaysThrottlingThrottler returns a fake throttler which always throttles.

()

Source from the content-addressed store, hash-verified

85
86// alwaysThrottlingThrottler returns a fake throttler which always throttles.
87func alwaysThrottlingThrottler() *fakeThrottler {
88 return &fakeThrottler{
89 throttleFunc: func() bool { return true },
90 throttleCh: make(chan struct{}, 1),
91 }
92}
93
94// neverThrottlingThrottler returns a fake throttler which never throttles.
95func neverThrottlingThrottler() *fakeThrottler {

Calls

no outgoing calls

Tested by

no test coverage detected