Skip to content

Commit

Permalink
chore: sliding window rate limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
zenghur committed Nov 27, 2020
1 parent 6eebb6f commit 891507a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ func (sl *SlidingWindowRateLimiter) Allow() (bool, error) {
}
return true, nil
default:
return false, fmt.Errorf("sliding window rate limiter err: %#v, key = %s, window = %s, limit = %d", ret, sl.key, sl.window, sl.limit)
return false, fmt.Errorf("sliding window rate limiter value: %#v, key = %s, window = %s, limit = %d", ret, sl.key, sl.window, sl.limit)
}
}

0 comments on commit 891507a

Please sign in to comment.