Closed Theodus closed 2 months ago
It seems that the integration tests are failing: https://github.com/edgeandnode/gateway/actions/runs/10097386438/job/27923501452?pr=902#step:11:75
2024-07-25T16:27:57.263548Z ERROR graph_gateway::network::subgraph_client: indexer=https://gateway-arbitrum.network.thegraph.com/api/deployments/id/QmZtNN8NbxjJ1KD5uKBYa7Gj29CT8xypSXnAmXbrLNTQgX network_subgraph_query_err=BadResponse(missing response)
This PR primarily introduces a check that trusted indexers return block timestamps later than 2 minutes from query time. This allows us to automatically fall back to alternate indexers when one falls behind. This PR also removes unused abstractions that make the network subgraph client harder to maintain.