From 3421e8df8167f5c3ae6f1cc802aaa9baab3b3d5b Mon Sep 17 00:00:00 2001 From: andig Date: Fri, 31 Oct 2025 15:24:42 +0100 Subject: [PATCH] Tariff: fix cached rates corruption --- tariff/proxy_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tariff/proxy_cache.go b/tariff/proxy_cache.go index 586589bd6..c1e0367d0 100644 --- a/tariff/proxy_cache.go +++ b/tariff/proxy_cache.go @@ -95,7 +95,7 @@ func (p *cachingProxy) Rates() (api.Rates, error) { if p.tariff == nil { if res, err := p.cacheGet(for24hrs()); err == nil { - return res.Rates, nil + return slices.Clone(res.Rates), nil } p.createInstance()