Skip to content

Commit

Permalink
#253: fix typos in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-bukhtoyarov committed May 2, 2022
1 parent a226652 commit 2948c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asciidoc/src/main/docs/asciidoc/basic/quick-start.adoc
Expand Up @@ -157,7 +157,7 @@ Bucket bucket = Bucket.builder()
// ...
while (true) {
// Consume a token from the token bucket. If a token is not available this method will block until the refill adds one to the bucket.
if (bucket.tryConsume(1, MAX_WAIT_NANOS, BlockingStrategy.PARKING)) {
if (bucket.asBlocking().tryConsume(1, MAX_WAIT_NANOS, BlockingStrategy.PARKING)) {
workloadExecutor.execute(new LoadTask());
};
}
Expand Down

0 comments on commit 2948c42

Please sign in to comment.