mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-09 13:35:12 +09:00
Five services shipped byte-identical save_config copies and as many the same get_config skeleton — the next fix (an atomic write, a better error) would have had to land in every one. load_json_config / save_json_config own the mechanics; the path, the default, and any behaviour around the write stay per-service. Byte-compatible with the copies: plain open(..., 'w'), no locking, no atomic rename — adding those here would be a behaviour change smuggled in with a consolidation; if they're ever wanted they now land once. Divergent services (template cache invalidation, storage secret merging, email_relay's DB backing, build_service's leaner return dict) keep their own methods. monitoring_service converts separately — it is mid-edit on another branch of this plan.