Skip to content

Commit 2403424

Browse files
committed
backup: Remove tqdm dependency
1 parent b2bc224 commit 2403424

File tree

3 files changed

+108
-110
lines changed

3 files changed

+108
-110
lines changed

backup/backend.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from typing import Iterator
55

66
import sqlite3
7-
from tqdm import tqdm
87

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

119118
self.db = self._db_open(dest)
120-
for c in tqdm(self.stream_changes(), total=self.version_count):
119+
for c in self.stream_changes():
121120
if c.snapshot is not None:
122121
self._restore_snapshot(c.snapshot, dest)
123122
if c.transaction is not None:

backup/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ authors = ["Christian Decker <decker@blockstream.com>"]
88
python = "^3.8"
99
pyln-client = "^23.11"
1010
click = "^8.0.4"
11-
tqdm = "^4.62.3"
1211
psutil = "^5.9.4"
1312
flask = "^2.2"
1413
werkzeug = "<3"

0 commit comments

Comments
 (0)