Skip to content

Rate Limiting sleep function #24

@yodaluca23

Description

@yodaluca23

First off, I want to say, I love this mod, it's truly amazing. But, a problem I have always had with this mod is the supposed "rate limiting" it will just randomly stop translating anything, I notice in the settings it is saying Google may rate limit. And taking a look at your code, I found here

private static class Timeout extends Thread {
that if you detect a rate limit, you pause the whole thing for 5 minutes, in my testing with the same API, I have never been rate limited, so it's probably a lot harder than what I'm experiencing with this mod, my theory is that just the request is failing for some other reason... So please make it where it has to fail like at least 10 times before sleeping.... Thank you!

You can see below, I totally spam the API, and no rate limiting...

Screen.Recording.2024-09-22.014819.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions