Updated RateLimiting (markdown)

Ivan Borshukov 2017-12-14 18:01:26 +02:00
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