Skip to content
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

Add rudementary backup recovery and discord rate limiting #31

Closed
wants to merge 2 commits into from

Conversation

brandonsturgeon
Copy link
Member

@brandonsturgeon brandonsturgeon commented Apr 26, 2023

This PR accomplishes two things:

  1. Basic backup and recovery of the error queue, making it less likely that servers will lose errors in the event of a crash or restart (not perfect though).
  2. Fully respect Discord rate limits

(Addresses #30)

Some notes:

cfc_err_forwarder_interval has been changed to cfc_err_forwarder_dedupe_duration. The setting is similar, but now has a more focused purpose, justifying a rename.

ErrorForwarder will not retry failed webhooks, it will simply log the failure and move on. My thinking is that servers typically have a reliable connection (the one exception being a message that's too long), so any issue causing requests to fail would likely cause all requests to fail. To that end, I'm not sure how useful retries will actually be.

@brandonsturgeon brandonsturgeon added bug Something isn't working enhancement New feature or request labels Apr 26, 2023
@brandonsturgeon brandonsturgeon self-assigned this Apr 26, 2023
@brandonsturgeon brandonsturgeon mentioned this pull request Jun 19, 2023
@brandonsturgeon
Copy link
Member Author

This will be added in #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant