Skip to content

Commit

Permalink
feat: reduce default num_workers_transactions 25k -> 10k (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Dec 21, 2024
1 parent f88c445 commit 32766fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eth_portfolio/_ledgers/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion eth_portfolio/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down
2 changes: 1 addition & 1 deletion eth_portfolio/portfolio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down

0 comments on commit 32766fe

Please sign in to comment.