From 5d8ec0ff1a7a3d40c54e84ba04d0d7d81aa28440 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 22 Jan 2021 14:18:36 +0000 Subject: [PATCH] Fix build error --- setup/base.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/base.go b/setup/base.go index 021dd2b3..5f0431e8 100644 --- a/setup/base.go +++ b/setup/base.go @@ -268,7 +268,7 @@ func (b *BaseDendrite) CreateClient() *gomatrixserverlib.Client { if b.Cfg.Global.DisableFederation { return gomatrixserverlib.NewClientWithTransport(noOpHTTPTransport) } - opts := []interface{}{} + opts := []gomatrixserverlib.ClientOption{} if b.Cfg.Global.DNSCache.Enabled { opts = append(opts, gomatrixserverlib.WithDNSCache{DNSCache: b.DNSCache}) } @@ -288,7 +288,7 @@ func (b *BaseDendrite) CreateFederationClient() *gomatrixserverlib.FederationCli b.Cfg.FederationSender.DisableTLSValidation, noOpHTTPTransport, ) } - opts := []interface{}{} + opts := []gomatrixserverlib.ClientOption{} if b.Cfg.Global.DNSCache.Enabled { opts = append(opts, gomatrixserverlib.WithDNSCache{DNSCache: b.DNSCache}) }