Skip to content

Commit ca3cc12

Browse files
cdberry-zzkluever
authored andcommitted
Correct a typo and some odd phrasing in the first paragraph of the javadoc for SmoothRateLimiter.
RELNOTES=n/a ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=346781263
1 parent fbbec2b commit ca3cc12

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ abstract class SmoothRateLimiter extends RateLimiter {
2626
/*
2727
* How is the RateLimiter designed, and why?
2828
*
29-
* The primary feature of a RateLimiter is its "stable rate", the maximum rate that is should
30-
* allow at normal conditions. This is enforced by "throttling" incoming requests as needed, i.e.
31-
* compute, for an incoming request, the appropriate throttle time, and make the calling thread
32-
* wait as much.
29+
* The primary feature of a RateLimiter is its "stable rate", the maximum rate that it should
30+
* allow in normal conditions. This is enforced by "throttling" incoming requests as needed. For
31+
* example, we could compute the appropriate throttle time for an incoming request, and make the
32+
* calling thread wait for that time.
3333
*
3434
* The simplest way to maintain a rate of QPS is to keep the timestamp of the last granted
3535
* request, and ensure that (1/QPS) seconds have elapsed since then. For example, for a rate of

guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ abstract class SmoothRateLimiter extends RateLimiter {
2626
/*
2727
* How is the RateLimiter designed, and why?
2828
*
29-
* The primary feature of a RateLimiter is its "stable rate", the maximum rate that is should
30-
* allow at normal conditions. This is enforced by "throttling" incoming requests as needed, i.e.
31-
* compute, for an incoming request, the appropriate throttle time, and make the calling thread
32-
* wait as much.
29+
* The primary feature of a RateLimiter is its "stable rate", the maximum rate that it should
30+
* allow in normal conditions. This is enforced by "throttling" incoming requests as needed. For
31+
* example, we could compute the appropriate throttle time for an incoming request, and make the
32+
* calling thread wait for that time.
3333
*
3434
* The simplest way to maintain a rate of QPS is to keep the timestamp of the last granted
3535
* request, and ensure that (1/QPS) seconds have elapsed since then. For example, for a rate of

0 commit comments

Comments
 (0)