BEGIN / END no longer necessary as there is no autocommit in new db module

This commit is contained in:
shortcutme 2019-03-16 02:18:53 +01:00
parent a46d8fe7f3
commit 4fe4d0a7e7
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
6 changed files with 0 additions and 37 deletions

View file

@ -69,7 +69,6 @@ class FileRequestPlugin(object):
i += 1
hashes_changed = 0
db.execute("BEGIN")
for onion, onion_hashes in onion_to_hash.items():
hashes_changed += db.peerAnnounce(
ip_type="onion",
@ -78,7 +77,6 @@ class FileRequestPlugin(object):
hashes=onion_hashes,
onion_signed=all_onions_signed
)
db.execute("END")
time_db_onion = time.time() - s
s = time.time()