Destination: clean ratchets to retained_ratchets

master
JRG 2026-08-14 22:20:47 +03:00 committed by Mark Qvist
parent 0d9bf5b862
commit 9b4947ef46
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ class Destination:
def _clean_ratchets(self):
if self.ratchets != None:
if len (self.ratchets) > self.retained_ratchets:
self.ratchets = self.ratchets[:Destination.RATCHET_COUNT]
self.ratchets = self.ratchets[:self.retained_ratchets]
def _persist_ratchets(self):
try: