This commit is contained in:
Riccardo Balbo 2025-02-23 16:53:06 +00:00
commit 9dcaf125b0
2 changed files with 14 additions and 8 deletions

View file

@ -49,7 +49,8 @@ class MainSubscription:
def gc(self, expire: Optional[int] = None):
"""
Garbage collection, remove all the events that have a response older than expire seconds (defaults to 1 hour if 0 or None)
Garbage collection, remove all the events that have a response older
than expire seconds (defaults to 1 hour if 0 or None)
"""
expire = expire or 1 * 60 * 60
now = int(time.time())