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

Rate limiting == flood. Migrate to the subgraph #31

Open
eccentricexit opened this issue Oct 29, 2021 · 0 comments
Open

Rate limiting == flood. Migrate to the subgraph #31

eccentricexit opened this issue Oct 29, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@eccentricexit
Copy link
Contributor

Occasionally, the bot gets rate limited by infura causing it to halt or bug out. After the rate limiting ceases or the bot is restarted, it syncs from the block it stopped.

This results in a flood of tweets of things that don't matter anymore.

One way to tackle this would be to just ignore events that are too old, however there is a much better way to fix this and avoid rate limiting entirely: use the https://github.com/kleros/t2cr-subgraph.

Deployed here: https://thegraph.com/hosted-service/subgraph/kleros/t2cr

@eccentricexit eccentricexit added the bug Something isn't working label Oct 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant