aboutsummaryrefslogtreecommitdiff
path: root/userapi
diff options
context:
space:
mode:
authordevonh <devon.dmytro@gmail.com>2023-04-24 16:23:25 +0000
committerGitHub <noreply@github.com>2023-04-24 16:23:25 +0000
commited19efc5d751446a57727c0880437d95be26ba9d (patch)
tree9c779c3d5df6b06afa0315e24e23b7a650a2a4b0 /userapi
parent4679098a6415ea8bfb7728ddafa587780849c059 (diff)
Move fedclient interface over to gmsl (#3061)
Companion PR: https://github.com/matrix-org/gomatrixserverlib/pull/366
Diffstat (limited to 'userapi')
-rw-r--r--userapi/internal/device_list_update_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/userapi/internal/device_list_update_test.go b/userapi/internal/device_list_update_test.go
index 3a269801..4d075e52 100644
--- a/userapi/internal/device_list_update_test.go
+++ b/userapi/internal/device_list_update_test.go
@@ -137,7 +137,7 @@ func (t *roundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
return t.fn(req)
}
-func newFedClient(tripper func(*http.Request) (*http.Response, error)) *fclient.FederationClient {
+func newFedClient(tripper func(*http.Request) (*http.Response, error)) fclient.FederationClient {
_, pkey, _ := ed25519.GenerateKey(nil)
fedClient := fclient.NewFederationClient(
[]*fclient.SigningIdentity{
@@ -147,8 +147,6 @@ func newFedClient(tripper func(*http.Request) (*http.Response, error)) *fclient.
PrivateKey: pkey,
},
},
- )
- fedClient.Client = *fclient.NewClient(
fclient.WithTransport(&roundTripper{tripper}),
)
return fedClient