优化结构

This commit is contained in:
Yvan
2026-08-28 13:56:12 +08:00
parent 33ba777137
commit 56f9440a6b
32 changed files with 159 additions and 270 deletions
+2
View File
@@ -122,6 +122,8 @@ func (d *Data) removeIntegrationConfigFromFile() error {
}
func (d *Data) reloadConfig(ctx context.Context) error {
// Explicit reload is the lifecycle boundary that rebuilds database, cache,
// Mongo, storage, and integration clients after a file snapshot change.
d.configMu.Lock()
defer d.configMu.Unlock()
configPath := d.runtime.ConfigPath()