-
Notifications
You must be signed in to change notification settings - Fork 62
Implement 1s pause between mutations #234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Co-Authored-By: Claude <[email protected]>
The |
True, it should be at the same granularity at which the rate limits are applied, which is per account iiuc. Per token seems like a reasonable approximation. I’m not sure a good way to do that, it would feel weird / insecure to make a global dictionary with tokens as keys. We could hash them or something. Or use the auth object itself (add a mutable field), but then if you created 2 auth objects with the same token they wouldn’t share timestamps. |
ChatGPT suggested the key to be
and cleaning up old entries to not accumulate memory forever in a long running process with many tokens used. |
ok, it adds a fair bit of complexity to track the state across auth instances but I think the current state does so:
|
closes #232
Based on #233 which is why the diff is so huge here. That one should be merged first