You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this exists already perhaps you can help me identify how to do it. I'm looking for a way to detect whether a particular key will overflow in the next call. Digging into the source it looks like it would be using this method
within_rate_limit? but would need to not increment the counter
def next_within_rate_limit?
ExcessFlow::GlobalMutex.locked(lock_key: configuration.lock_key) do
cleanup_stale_counters
if current_requests < configuration.limit
true
else
false
end
end
end
end
The big difference is it wouldn't call the "bump_counter" method.
The text was updated successfully, but these errors were encountered:
If this exists already perhaps you can help me identify how to do it. I'm looking for a way to detect whether a particular key will overflow in the next call. Digging into the source it looks like it would be using this method
within_rate_limit? but would need to not increment the counter
The big difference is it wouldn't call the "bump_counter" method.
The text was updated successfully, but these errors were encountered: