FuelLabs / fuel-indexer

🗃 The Fuel indexer is a standalone service that can be used to index various components of the Fuel blockchain.
https://docs.fuel.network/docs/indexer/
140 stars 66 forks source link

enhancement: add option for delaying requests to Fuel node #1441

Closed deekerno closed 10 months ago

deekerno commented 10 months ago

Description

Adds a configuration flag to delay requests to a Fuel node. This is useful if a Fuel node makes use of rate limiting.

Testing steps

Run any of the examples with the --verbose flag and an arbitrary value for the --node-request-delay. You should see that the service waits for the desired amount of time before processing and committing another group of blocks to the database.

deekerno commented 10 months ago

@ra0x3 Works for me, I'll make the requisite changes.