Tariff: fix cached rates corruption
Some checks failed
Some checks failed
This commit is contained in:
parent
b7d8da1116
commit
3421e8df81
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue