Skip to content

Commit

Permalink
fix: AddressTransactionLedger.__stop_workers
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Dec 16, 2024
1 parent 1b8fd46 commit 493be4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eth_portfolio/_ledgers/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,10 @@ async def __worker_fn(

def __stop_workers(self) -> None:
logger.info("stopping workers for %s", self)
for _ in range(len(_workers)):
self._workers.pop().cancel()
workers = self._workers
pop_next = workers.pop
for _ in range(len(workers)):
pop_next().cancel()


class InternalTransfersList(PandableList[InternalTransfer]):
Expand Down

0 comments on commit 493be4e

Please sign in to comment.