mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Updated RateLimiting (markdown)
parent
e4da6f879e
commit
67bbbe9252
@ -31,7 +31,7 @@ go func() {
|
||||
case throttle <- t:
|
||||
default:
|
||||
}
|
||||
} // exits after tick.Stop()
|
||||
} // does not exit after tick.Stop()
|
||||
}()
|
||||
for req := range requests {
|
||||
<-throttle // rate limit our Service.Method RPCs
|
||||
|
Loading…
x
Reference in New Issue
Block a user