mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-04-27 14:20:35 +00:00
Improved ratchet cleaning
This commit is contained in:
parent
c71f5d8c5e
commit
17e8159fd8
1 changed files with 2 additions and 1 deletions
|
|
@ -455,7 +455,7 @@ class Identity:
|
|||
if not destination_hash in RNS.Identity.known_destinations: unknown = True; not_known += 1
|
||||
else: unknown = False
|
||||
|
||||
if expired or corrupted:
|
||||
if expired or corrupted or unknown:
|
||||
os.unlink(f"{ratchetdir}/{filename}")
|
||||
removed += 1
|
||||
|
||||
|
|
@ -464,6 +464,7 @@ class Identity:
|
|||
RNS.log(f"The contained exception was: {e}", RNS.LOG_ERROR)
|
||||
|
||||
except Exception as e: RNS.log(f"An error occurred while cleaning ratchets. The contained exception was: {e}", RNS.LOG_ERROR)
|
||||
RNS.log(f"Processed {count} ratchets in {RNS.prettytime(time.time()-now)}, not in use {not_known}, removed {removed}", RNS.LOG_DEBUG)
|
||||
|
||||
@staticmethod
|
||||
def get_ratchet(destination_hash):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue