From 9ede09ee4e09783fd981116bb9119cb193236f22 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Thu, 27 Oct 2022 07:03:09 +0200 Subject: [PATCH] Update cache on single protocol request --- appservice/query/query.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appservice/query/query.go b/appservice/query/query.go index 387888d3f..2348eab4b 100644 --- a/appservice/query/query.go +++ b/appservice/query/query.go @@ -311,7 +311,7 @@ func (a *AppServiceQueryAPI) Protocols( resp.Protocols = map[string]api.ASProtocolResponse{ req.Protocol: response, } - + a.ProtocolCache[req.Protocol] = response return nil } @@ -321,7 +321,7 @@ func (a *AppServiceQueryAPI) Protocols( for _, p := range as.Protocols { var proto api.ASProtocolResponse if err := requestDo[api.ASProtocolResponse](a.HTTPClient, as.URL+api.ASProtocolPath+p, &proto); err != nil { - log.WithError(err).Error("unable to get protocolResponse from application service") + log.WithError(err).Error("unable to get 'protocol' from application service") continue } existing, ok := response[p]