From 68c313911e8a3aed605a12398442212b99f41619 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sat, 22 Feb 2020 05:28:21 -0500 Subject: Update vendor of buildah and containers/common Signed-off-by: Daniel J Walsh --- vendor/golang.org/x/time/rate/rate.go | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'vendor/golang.org/x/time/rate') diff --git a/vendor/golang.org/x/time/rate/rate.go b/vendor/golang.org/x/time/rate/rate.go index 85c18b5a3..ae93e2471 100644 --- a/vendor/golang.org/x/time/rate/rate.go +++ b/vendor/golang.org/x/time/rate/rate.go @@ -281,23 +281,6 @@ func (lim *Limiter) SetLimitAt(now time.Time, newLimit Limit) { lim.limit = newLimit } -// SetBurst is shorthand for SetBurstAt(time.Now(), newBurst). -func (lim *Limiter) SetBurst(newBurst int) { - lim.SetBurstAt(time.Now(), newBurst) -} - -// SetBurstAt sets a new burst size for the limiter. -func (lim *Limiter) SetBurstAt(now time.Time, newBurst int) { - lim.mu.Lock() - defer lim.mu.Unlock() - - now, _, tokens := lim.advance(now) - - lim.last = now - lim.tokens = tokens - lim.burst = newBurst -} - // reserveN is a helper method for AllowN, ReserveN, and WaitN. // maxFutureReserve specifies the maximum reservation wait duration allowed. // reserveN returns Reservation, not *Reservation, to avoid allocation in AllowN and WaitN. -- cgit v1.2.3-54-g00ecf