From 66fa039ede456454f26b3bfedefabfe71beda3ab Mon Sep 17 00:00:00 2001 From: Stanislav Chzhen Date: Wed, 9 Oct 2024 17:30:58 +0300 Subject: [PATCH] home: custom client cache --- internal/home/clients.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/home/clients.go b/internal/home/clients.go index 409d4039..59b9cbe3 100644 --- a/internal/home/clients.go +++ b/internal/home/clients.go @@ -417,6 +417,11 @@ func (clients *clientsContainer) UpstreamConfigByID( ) c.UpstreamConfig = conf + err = clients.storage.Update(c.Name, c) + if err != nil { + return nil, fmt.Errorf("setting upstream config: %w", err) + } + return conf, nil }