mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-10 13:32:26 +00:00
refactor: use atomic file read/write for better performance
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user