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