From c49c9866925931b86f1fedf3f90199421c95ea54 Mon Sep 17 00:00:00 2001 From: Serhii Horbatenko <32683337+Horbatenko@users.noreply.github.com> Date: Mon, 23 Nov 2026 10:49:13 +0200 Subject: [PATCH] write jsonrpc2.yml atomically 8990c1f added writeFileAtomic, but only used it in SignalCliApiConfig.Persist() (api-config.yml). jsonrpc2.yml is written by JsonRpc2ClientConfig.Persist(), which still used ioutil.WriteFile, so the REST API could still read an empty jsonrpc2.yml while jsonrpc2-helper rewrites it and start without any JSON-RPC client. see #893 --- src/utils/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/config.go b/src/utils/config.go index 9163b2c..4c1b6bb 100644 --- a/src/utils/config.go +++ b/src/utils/config.go @@ -69,5 +69,5 @@ func (c *JsonRpc2ClientConfig) Persist(path string) error { return err } - return ioutil.WriteFile(path, out, 0644) + return writeFileAtomic(path, out, 0644) }