Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Mar 8, 2025
1 parent 72f0b69 commit c9f64dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cashu/mint/ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,12 @@ async def _check_backends(self) -> None:
logger.info(f"Data dir: {settings.cashu_dir}")

async def shutdown_ledger(self) -> None:
logger.debug("Disconnecting from database")
await self.db.engine.dispose()
logger.debug("Shutting down invoice listeners")
for task in self.invoice_listener_tasks:
task.cancel()
logger.debug("Shutting down regular tasks")
for task in self.regular_tasks:
task.cancel()

Expand Down

0 comments on commit c9f64dc

Please sign in to comment.