Pull request 2290: 7250-custom-client-cache
Updates #7250. Squashed commit of the following: commit 062660f17e164b92a3254c5b79543080c6884dd5 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Oct 9 17:42:17 2024 +0300 all: upd chlog commit 66fa039ede456454f26b3bfedefabfe71beda3ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Oct 9 17:30:58 2024 +0300 home: custom client cache
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user