x/time/rate: add lock for getting burst #37357
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Burst can be modified in
func (lim *Limiter) SetBurst(newBurst int)
, so it may be protected infunc (lim *Limiter) Burst() int
.What did you expect to see?
I send PR to golang/time#9
What did you see instead?
The text was updated successfully, but these errors were encountered: