Skip to content

Commit

Permalink
backup: Remove tqdm dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Mar 4, 2024
1 parent 889671d commit cd23955
Showing 4 changed files with 110 additions and 132 deletions.
3 changes: 1 addition & 2 deletions backup/backend.py
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@
from typing import Iterator

import sqlite3
from tqdm import tqdm

# A 'transaction' that was proposed by Core-Lightning and that needs saving to the
# backup. `version` is the `data_version` of the database **after** `transaction`
@@ -117,7 +116,7 @@ def restore(self, dest: str, remove_existing: bool = False):
os.unlink(dest)

self.db = self._db_open(dest)
for c in tqdm(self.stream_changes(), total=self.version_count):
for c in self.stream_changes():
if c.snapshot is not None:
self._restore_snapshot(c.snapshot, dest)
if c.transaction is not None:
24 changes: 2 additions & 22 deletions backup/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion backup/pyproject.toml
Original file line number Diff line number Diff line change
@@ -8,7 +8,6 @@ authors = ["Christian Decker <decker@blockstream.com>"]
python = "^3.8"
pyln-client = "^23.11"
click = "^8.0.4"
tqdm = "^4.62.3"
psutil = "^5.9.4"
flask = "^2.2"
werkzeug = "<3"
Loading

0 comments on commit cd23955

Please sign in to comment.