From 4f7da14cb0cf61fabe763e2a608814ac70a514f6 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Wed, 26 Oct 2022 14:58:12 +0200 Subject: [PATCH] Remove duplicate import --- appservice/query/query.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/appservice/query/query.go b/appservice/query/query.go index 83e31b755..387888d3f 100644 --- a/appservice/query/query.go +++ b/appservice/query/query.go @@ -26,7 +26,6 @@ import ( "sync" "github.com/opentracing/opentracing-go" - "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus" "github.com/matrix-org/dendrite/appservice/api" @@ -292,7 +291,7 @@ func (a *AppServiceQueryAPI) Protocols( for _, as := range a.Cfg.Derived.ApplicationServices { var proto api.ASProtocolResponse if err := requestDo[api.ASProtocolResponse](a.HTTPClient, as.URL+api.ASProtocolPath+req.Protocol, &proto); err != nil { - logrus.WithError(err).Error("unable to get 'protocol' from application service") + log.WithError(err).Error("unable to get 'protocol' from application service") continue } @@ -322,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 { - logrus.WithError(err).Error("unable to get protocolResponse from application service") + log.WithError(err).Error("unable to get protocolResponse from application service") continue } existing, ok := response[p]