Skip to content

Commit

Permalink
bump up block page size
Browse files Browse the repository at this point in the history
  • Loading branch information
wakamex committed Feb 7, 2024
1 parent f332896 commit ad25ef2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ape_alchemy/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
class AlchemyConfig(PluginConfig):
"""Configuration for Alchemy.
Attributes:
concurrency (int): The maximum number of concurrent requests to make.
Defaults to 1.
Expand All @@ -58,7 +57,7 @@ class AlchemyConfig(PluginConfig):
"""

concurrency: int = 1 # can't do exponential backoff with multiple threads
block_page_size: int = 250_000 # this acts as an upper limit, safe to set very high
block_page_size: int = 25_000_000 # this acts as an upper limit, safe to set very high
min_retry_delay: int = 1_000 # 1 second
retry_backoff_factor: int = 2 # exponential backoff
max_retry_delay: int = 30_000 # 30 seconds
Expand Down

0 comments on commit ad25ef2

Please sign in to comment.