mirror of
https://github.com/matrix-org/dendrite
synced 2024-12-14 23:32:45 +00:00
Fix build error
This commit is contained in:
parent
805a74892e
commit
5d8ec0ff1a
1 changed files with 2 additions and 2 deletions
|
@ -268,7 +268,7 @@ func (b *BaseDendrite) CreateClient() *gomatrixserverlib.Client {
|
||||||
if b.Cfg.Global.DisableFederation {
|
if b.Cfg.Global.DisableFederation {
|
||||||
return gomatrixserverlib.NewClientWithTransport(noOpHTTPTransport)
|
return gomatrixserverlib.NewClientWithTransport(noOpHTTPTransport)
|
||||||
}
|
}
|
||||||
opts := []interface{}{}
|
opts := []gomatrixserverlib.ClientOption{}
|
||||||
if b.Cfg.Global.DNSCache.Enabled {
|
if b.Cfg.Global.DNSCache.Enabled {
|
||||||
opts = append(opts, gomatrixserverlib.WithDNSCache{DNSCache: b.DNSCache})
|
opts = append(opts, gomatrixserverlib.WithDNSCache{DNSCache: b.DNSCache})
|
||||||
}
|
}
|
||||||
|
@ -288,7 +288,7 @@ func (b *BaseDendrite) CreateFederationClient() *gomatrixserverlib.FederationCli
|
||||||
b.Cfg.FederationSender.DisableTLSValidation, noOpHTTPTransport,
|
b.Cfg.FederationSender.DisableTLSValidation, noOpHTTPTransport,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
opts := []interface{}{}
|
opts := []gomatrixserverlib.ClientOption{}
|
||||||
if b.Cfg.Global.DNSCache.Enabled {
|
if b.Cfg.Global.DNSCache.Enabled {
|
||||||
opts = append(opts, gomatrixserverlib.WithDNSCache{DNSCache: b.DNSCache})
|
opts = append(opts, gomatrixserverlib.WithDNSCache{DNSCache: b.DNSCache})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue