mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 10:33:11 -06:00
Remove direct access to httpClient in fedclient
This commit is contained in:
parent
62b0824627
commit
f5039ee40a
|
|
@ -127,7 +127,7 @@ func bulkFetchUserDirectoriesFromServers(
|
|||
)
|
||||
}
|
||||
res := &userapi.QuerySearchProfilesResponse{}
|
||||
if err = fedClient.InternalClient().DoRequestAndParseResponse(reqctx, httpReq, res); err != nil {
|
||||
if err = fedClient.DoRequestAndParseResponse(reqctx, httpReq, res); err != nil {
|
||||
util.GetLogger(reqctx).WithError(err).WithField("hs", homeserverDomain).Warn(
|
||||
"bulkFetchUserDirectoriesFromServers: failed to query hs",
|
||||
)
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ func main() {
|
|||
}
|
||||
|
||||
var res interface{}
|
||||
err = client.InternalClient().DoRequestAndParseResponse(
|
||||
err = client.DoRequestAndParseResponse(
|
||||
context.TODO(),
|
||||
httpReq,
|
||||
&res,
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ func CreateFederationClient(cfg *config.Dendrite, dnsCache *fclient.DNSCache) fc
|
|||
client := fclient.NewFederationClient(
|
||||
identities, opts...,
|
||||
)
|
||||
client.InternalClient().SetUserAgent(fmt.Sprintf("Dendrite/%s", internal.VersionString()))
|
||||
client.WithUserAgent(fmt.Sprintf("Dendrite/%s", internal.VersionString()))
|
||||
return client
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue