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

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

@eccentricexit

Description

@eccentricexit

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions