neverThrottlingThrottler returns a fake throttler which never throttles.
()
| 93 | |
| 94 | // neverThrottlingThrottler returns a fake throttler which never throttles. |
| 95 | func 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 |
no outgoing calls
no test coverage detected