Skip to content

Commit 3421e8d

Browse files
committed
Tariff: fix cached rates corruption
1 parent b7d8da1 commit 3421e8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tariff/proxy_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (p *cachingProxy) Rates() (api.Rates, error) {
9595

9696
if p.tariff == nil {
9797
if res, err := p.cacheGet(for24hrs()); err == nil {
98-
return res.Rates, nil
98+
return slices.Clone(res.Rates), nil
9999
}
100100

101101
p.createInstance()

0 commit comments

Comments
 (0)