refactor: use atomic file read/write for better performance

This commit is contained in:
2026-07-06 22:40:47 +08:00
parent 844d390017
commit b95a45496b
8 changed files with 262 additions and 356 deletions
+3
View File
@@ -1322,6 +1322,9 @@ def app():
logger.attr("Password", True if key else False)
logger.attr("CDN", cdn)
from deploy.Windows.atomic import atomic_failure_cleanup
atomic_failure_cleanup('./config')
def index():
if key is not None and not login(key):
logger.warning(f"{info.user_ip} login failed.")