diff --git a/setup/base.go b/setup/base.go index 021dd2b32..5f0431e84 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}) }