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
We have some endpoints that are rate limited but we always want to the requests to succeed even if that sends the token balance negative. Currently we'd need to instantiate two RollingLimit classes with different options and manage which instance was applied to the different endpoints.
Would you be open to adding a new parameter to the use() signature to specify the value for force? e.g. use(id, cost, force)
The text was updated successfully, but these errors were encountered:
Typically, if you already know the value of force at call-time, then you should be able to interpret the result resolved from use() in the same way. For instance:
We have some endpoints that are rate limited but we always want to the requests to succeed even if that sends the token balance negative. Currently we'd need to instantiate two
RollingLimit
classes with different options and manage which instance was applied to the different endpoints.Would you be open to adding a new parameter to the use() signature to specify the value for force? e.g.
use(id, cost, force)
The text was updated successfully, but these errors were encountered: