Skip to content

Commit

Permalink
Update _requests.py (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 16, 2024
1 parent b32b6a7 commit 05210df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dank_mids/_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ async def _debug_daemon(self) -> None:
@lru_cache(maxsize=None)
def _get_len_for_method(method: str) -> int:
# NOTE: These are totally arbitrary, used to reduce frequency of giant batches/responses
if self.method == "eth_getTransactionReceipt":
if method == "eth_getTransactionReceipt":
return 10
elif any(m in self.method for m in ["eth_getCode" "eth_getBlockBy", "eth_getTransaction"]):
elif any(m in method for m in ["eth_getCode" "eth_getBlockBy", "eth_getTransaction"]):
return 6
return 1

Expand Down

0 comments on commit 05210df

Please sign in to comment.