Skip to content

Commit fa19d73

Browse files
fix: lint errors — remove unused imports, fix renamed variable
1 parent 449c6cc commit fa19d73

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

truememory/hooks/core.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"""
77
from __future__ import annotations
88

9-
import contextlib
109
import json
1110
import logging
1211
import os
@@ -283,7 +282,6 @@ def _get_spawn_cap() -> int:
283282

284283
try:
285284
import fcntl
286-
import signal
287285
_HAS_FCNTL = True
288286
except ImportError:
289287
_HAS_FCNTL = False

truememory/mcp_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,12 +1148,12 @@ def _drain_batch_from_backlog(markers: list[Path]) -> None:
11481148

11491149
def _start_backlog_drainer() -> None:
11501150
"""Launch the background backlog drainer thread."""
1151-
if _BACKLOG_DRAIN_INTERVAL <= 0:
1151+
if _BACKLOG_DRAIN_INTERVAL_NORMAL <= 0:
11521152
log.info("Backlog drainer disabled (TRUEMEMORY_DRAIN_INTERVAL_SEC=0)")
11531153
return
11541154
t = threading.Thread(target=_backlog_drainer, daemon=True, name="backlog-drainer")
11551155
t.start()
1156-
log.info("Backlog drainer started (interval=%ds)", _BACKLOG_DRAIN_INTERVAL)
1156+
log.info("Backlog drainer started (interval=%ds)", _BACKLOG_DRAIN_INTERVAL_NORMAL)
11571157

11581158

11591159
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)