mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-11 19:52:23 +00:00
refactor: use atomic file read/write for better performance
This commit is contained in:
@@ -93,6 +93,9 @@ class DeployConfig(ConfigModel):
|
||||
logger.info(f"Rest of the configs are the same as default")
|
||||
|
||||
def read(self):
|
||||
"""
|
||||
Read and update deploy config, copy `self.configs` to properties.
|
||||
"""
|
||||
self.config = poor_yaml_read(DEPLOY_TEMPLATE)
|
||||
self.config_template = copy.deepcopy(self.config)
|
||||
origin = poor_yaml_read(self.file)
|
||||
|
||||
Reference in New Issue
Block a user