From 32766feddcc3e28a1fc9fafea5a358f2d770d5e5 Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Fri, 20 Dec 2024 21:12:44 -0400 Subject: [PATCH] feat: reduce default num_workers_transactions 25k -> 10k (#166) --- eth_portfolio/_ledgers/address.py | 2 +- eth_portfolio/address.py | 2 +- eth_portfolio/portfolio.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eth_portfolio/_ledgers/address.py b/eth_portfolio/_ledgers/address.py index 58584438..85c4ba38 100644 --- a/eth_portfolio/_ledgers/address.py +++ b/eth_portfolio/_ledgers/address.py @@ -408,7 +408,7 @@ class AddressTransactionsLedger(AddressLedgerBase[TransactionsList, Transaction] _list_type = TransactionsList __slots__ = ("cached_thru_nonce", "_queue", "_ready", "_num_workers", "_workers") - def __init__(self, portfolio_address: "PortfolioAddress", num_workers: int = 25_000): + def __init__(self, portfolio_address: "PortfolioAddress", num_workers: int = 10_000): """ Initializes the AddressTransactionsLedger instance. diff --git a/eth_portfolio/address.py b/eth_portfolio/address.py index 59785e19..e12e6463 100644 --- a/eth_portfolio/address.py +++ b/eth_portfolio/address.py @@ -55,7 +55,7 @@ def __init__( address: Address, start_block: Block, load_prices: bool, - num_workers_transactions: int = 25_000, + num_workers_transactions: int = 10_000, asynchronous: bool = False, ) -> None: # type: ignore """ diff --git a/eth_portfolio/portfolio.py b/eth_portfolio/portfolio.py index 1a6bc709..624cf559 100644 --- a/eth_portfolio/portfolio.py +++ b/eth_portfolio/portfolio.py @@ -206,7 +206,7 @@ def __init__( start_block: int = 0, label: str = _DEFAULT_LABEL, load_prices: bool = True, - num_workers_transactions: int = 25_000, + num_workers_transactions: int = 10_000, asynchronous: bool = False, ) -> None: """