From 620c04f75ad0f6025cc26f73dd07c466d6e1c62e Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Thu, 17 Jul 2025 21:00:44 -0400 Subject: fix config writes --- py_modules/lsfg_vk/configuration.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'py_modules/lsfg_vk/configuration.py') diff --git a/py_modules/lsfg_vk/configuration.py b/py_modules/lsfg_vk/configuration.py index c15fc37..a4fcae5 100644 --- a/py_modules/lsfg_vk/configuration.py +++ b/py_modules/lsfg_vk/configuration.py @@ -89,11 +89,11 @@ class ConfigurationService(BaseService): # Generate TOML content using centralized manager toml_content = ConfigurationManager.generate_toml_content(config) - # Ensure config directory exists + # Ensure config directory exists self.config_dir.mkdir(parents=True, exist_ok=True) - # Write the updated config atomically - self._atomic_write(self.config_file_path, toml_content, 0o644) + # Write the updated config directly to preserve inode for file watchers + self._write_file(self.config_file_path, toml_content, 0o644) self.log.info(f"Updated lsfg TOML configuration: enable={enable}, " f"dll='{dll}', multiplier={multiplier}, flow_scale={flow_scale}, " @@ -154,8 +154,8 @@ class ConfigurationService(BaseService): # Ensure config directory exists self.config_dir.mkdir(parents=True, exist_ok=True) - # Write the updated config atomically - self._atomic_write(self.config_file_path, toml_content, 0o644) + # Write the updated config directly to preserve inode for file watchers + self._write_file(self.config_file_path, toml_content, 0o644) self.log.info(f"Updated DLL path in lsfg configuration: '{dll_path}'") -- cgit v1.2.3