Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: golang/time
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.6.0
Choose a base ref
...
head repository: golang/time
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.7.0
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Oct 1, 2024

  1. x/time/rate: correctly handle 0 limits

    Decrementing the burst in the reserveN method will frequently lead to us
    setting the burst to 0 which makes the limiter mostly unusable.
    
    This code was originally added in https://go.dev/cl/323429 to fix #39984
    but the implementation introduced a different bug. To avoid regressing
    to the behaviour described in #39984, pre-fill the limiter to the burst
    value in the constructor.
    
    Fixes #68541
    
    Change-Id: Iab3b85d548a44fcb2d058336e5bbf11b19ea67b1
    Reviewed-on: https://go-review.googlesource.com/c/time/+/600876
    Reviewed-by: Sameer Ajmani <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Michael Knyszek <[email protected]>
    Auto-Submit: Sameer Ajmani <[email protected]>
    leesio authored and gopherbot committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    772484e View commit details
    Browse the repository at this point in the history
Loading