Skip to content

Commit

Permalink
Disable TTL by default
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Nov 25, 2022
1 parent 53ce857 commit df3fb78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/test_ystore.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class MyTempFileYStore(TempFileYStore):

class MySQLiteYStore(SQLiteYStore):
db_path = MY_SQLITE_YSTORE_DB_PATH
document_ttl = 1000

def __init__(self, *args, delete_db=False, **kwargs):
if delete_db:
Expand Down
2 changes: 1 addition & 1 deletion ypy_websocket/ystore.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class MySQLiteYStore(SQLiteYStore):
# Determines the "time to live" for all documents, i.e. how recent the
# latest update of a document must be before purging document history.
# Defaults to 1 day.
document_ttl: int = 24 * 60 * 60
document_ttl: float = float("inf")
path: str
db_initialized: asyncio.Task

Expand Down

0 comments on commit df3fb78

Please sign in to comment.