commit | 2c09566ef13fb5556401ddff3c53c3dbc2a42dac | [log] [tgz] |
---|---|---|
author | Zeke Lu <lvzecai@gmail.com> | Thu Nov 03 04:09:16 2022 +0000 |
committer | Gopher Robot <gobot@golang.org> | Wed Nov 16 15:19:46 2022 +0000 |
tree | 625c3f5896b76ddeb9383bad3c96bb7d5a894c62 | |
parent | 80b9fac54d29c0b915a080a2317704753a5800ce [diff] |
rate: the state of the limiter should not be changed when the requests 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: e408718f070679209aca64bfbc18e4297777c311 GitHub-Pull-Request: golang/time#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>
This repository provides supplementary Go time packages.
The easiest way to install is to run go get -u golang.org/x/time
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/time
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/time:” in the subject line, so it is easy to find.