Skip to content

Commit

Permalink
Add Observe() func to internal GCERateLimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerhance committed Mar 23, 2023
1 parent c5d2ed6 commit 9679cfd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/ratelimit/ratelimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ func (grl *GCERateLimiter) Accept(ctx context.Context, key *cloud.RateLimitKey)
return err
}

// Observe is a no-op func to satisfy cloud.RateLimiter
func (grl *GCERateLimiter) Observe(context.Context, error, *cloud.RateLimitKey) {}

// rateLimitImpl returns the flowcontrol.RateLimiter implementation
// associated with the passed in key.
func (grl *GCERateLimiter) rateLimitImpl(key *cloud.RateLimitKey) flowcontrol.RateLimiter {
Expand Down

0 comments on commit 9679cfd

Please sign in to comment.