commit | 3af7569d3a1e776fc2a3c1cec133b43105ea9c2e | [log] [tgz] |
---|---|---|
author | fatedier <fatedier@gmail.com> | Tue Jun 30 03:53:44 2020 +0000 |
committer | Sameer Ajmani <sameer@golang.org> | Tue Jun 30 17:30:20 2020 +0000 |
tree | 0b990659c55e1e2b050bb36656801b1c8b35e0ab | |
parent | 89c76fbcd5d1cd4969e5d2fe19d48b19d5ad94a0 [diff] |
add lock for getting burst Burst can be modified in `func (lim *Limiter) SetBurst(newBurst int)`, so it should be protected in `func (lim *Limiter) Burst() int`. Change-Id: Ife2a733b035067d34e3165d2b2636666fcf2ee1d GitHub-Last-Rev: bc8e73110ffccf7e42325e34865b473bc4624c31 GitHub-Pull-Request: golang/time#9 Reviewed-on: https://go-review.googlesource.com/c/time/+/205020 Reviewed-by: Sameer Ajmani <sameer@golang.org> Run-TryBot: Sameer Ajmani <sameer@golang.org> TryBot-Result: Gobot Gobot <gobot@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.