Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Respect rate limits by not continuing to send if 429 received. #346

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

michaelkaye
Copy link
Contributor

I'm aware this will drop messages on the floor - but given we do not retry these messages that are returning 429 errors anyway, there's little point in continuing to retry and it only adds load to the live server.

services/rssbot/rssbot.go Outdated Show resolved Hide resolved
@kegsay
Copy link
Member

kegsay commented Mar 24, 2021

CI is failing and it would be nice to add a test to rssbot_test.go.

@michaelkaye
Copy link
Contributor Author

Happy for someone to take this on, very much don't wait for me - i just want it not to chew CPU cycles on matrix.org with 429 errors.

I might find some time in a few months to learn enough go, as it seems the library upgrade wasn't as simple as advertised.

@kegsay kegsay self-assigned this Mar 30, 2021
@kegsay
Copy link
Member

kegsay commented Mar 30, 2021

I'll see if I can get to this this week.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants