Skip to content

Commit

Permalink
chore: add detail to batch size logs (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Aug 3, 2023
1 parent ae846ed commit b2d106c
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 @@ -730,10 +730,10 @@ async def bisect_and_retry(self, e: Exception) -> None:

def adjust_batch_size(self) -> None:
if self.is_multicalls_only:
logger.info('checking if we should reduce multicall batch size...')
logger.info('checking if we should reduce multicall batch size... (%s calls)', self.total_calls)
self.controller.reduce_multicall_size(self.total_calls)
else:
logger.info('checking if we should reduce json batch size...')
logger.info('checking if we should reduce json batch size... (%s requests)', len(self))
self.controller.reduce_batch_size(len(self))
stats.logger.devhint(
"We still need some better logic for catching these errors and using them to better optimize the batching process"
Expand Down

0 comments on commit b2d106c

Please sign in to comment.