-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed
WithRateLimiter
costFunc
-arg to include the methods of al…
…l calls (#122) * When rate limiting, include cost of batch request itself too. This allows the cost func to provide a cost for the batch itself in batch requests. Some providers (Infura) include this as part of their rate limiting. Ref: https://docs.infura.io/api/networks/ethereum/how-to/make-batch-requests * In WithRateLimiter, change costFunc signature to receive all batch methods at once. * simplified costFunc-example and fixed comment * small cleanup --------- Co-authored-by: lmittmann <lmittmann@users.noreply.github.com> Signed-off-by: Mohammed Sohail <sohailsameja@gmail.com>
- Loading branch information
1 parent
759de14
commit 16bd326
Showing
2 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters