google.golang.org/grpc.retryThrottler.tokens (field)
9 uses
google.golang.org/grpc (current package)
clientconn.go#L917: tokens: cc.sc.retryThrottling.MaxTokens,
clientconn.go#L1491: tokens float64 // TODO(dfawley): replace with atomic and remove lock.
clientconn.go#L1503: rt.tokens--
clientconn.go#L1504: if rt.tokens < 0 {
clientconn.go#L1505: rt.tokens = 0
clientconn.go#L1507: return rt.tokens <= rt.thresh
clientconn.go#L1516: rt.tokens += rt.ratio
clientconn.go#L1517: if rt.tokens > rt.max {
clientconn.go#L1518: rt.tokens = rt.max
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |