-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rate: the state of the limiter should not be changed when the request…
…s failed In the following cases, the reserveN is a no-op, and the state of the limiter should not be changed: 1. n exceeds the Limiter's burst size 2. maxFutureReserve is less than the waitDuration Fixes golang/go#52584 Change-Id: I5f38afa5da696bc10178a4bd0640d92062a8b009 GitHub-Last-Rev: e408718 GitHub-Pull-Request: #22 Reviewed-on: https://go-review.googlesource.com/c/time/+/406154 Reviewed-by: Russ Cox <rsc@golang.org> Auto-Submit: Sameer Ajmani <sameer@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Sameer Ajmani <sameer@golang.org> Auto-Submit: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org>
- Loading branch information
Showing
2 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters