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

Struct fakeThrottler

balancer/rls/helpers_test.go:69–72  ·  view source on GitHub ↗

fakeThrottler is a fake implementation of the adaptiveThrottler interface.

Source from the content-addressed store, hash-verified

67
68// fakeThrottler is a fake implementation of the adaptiveThrottler interface.
69type fakeThrottler struct {
70 throttleFunc func() bool // Fake throttler implementation.
71 throttleCh chan struct{} // Invocation of ShouldThrottle signals here.
72}
73
74func (f *fakeThrottler) ShouldThrottle() bool {
75 select {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected