aboutsummaryrefslogtreecommitdiff
path: root/relayapi
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 /relayapi
parent4679098a6415ea8bfb7728ddafa587780849c059 (diff)
Move fedclient interface over to gmsl (#3061)
Companion PR: https://github.com/matrix-org/gomatrixserverlib/pull/366
Diffstat (limited to 'relayapi')
-rw-r--r--relayapi/internal/api.go6
-rw-r--r--relayapi/internal/perform_test.go3
-rw-r--r--relayapi/relayapi.go2
3 files changed, 5 insertions, 6 deletions
diff --git a/relayapi/internal/api.go b/relayapi/internal/api.go
index 55e86aef..603309cf 100644
--- a/relayapi/internal/api.go
+++ b/relayapi/internal/api.go
@@ -17,17 +17,17 @@ package internal
import (
"sync"
- fedAPI "github.com/matrix-org/dendrite/federationapi/api"
"github.com/matrix-org/dendrite/federationapi/producers"
"github.com/matrix-org/dendrite/relayapi/storage"
rsAPI "github.com/matrix-org/dendrite/roomserver/api"
"github.com/matrix-org/gomatrixserverlib"
+ "github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/matrix-org/gomatrixserverlib/spec"
)
type RelayInternalAPI struct {
db storage.Database
- fedClient fedAPI.FederationClient
+ fedClient fclient.FederationClient
rsAPI rsAPI.RoomserverInternalAPI
keyRing *gomatrixserverlib.KeyRing
producer *producers.SyncAPIProducer
@@ -39,7 +39,7 @@ type RelayInternalAPI struct {
func NewRelayInternalAPI(
db storage.Database,
- fedClient fedAPI.FederationClient,
+ fedClient fclient.FederationClient,
rsAPI rsAPI.RoomserverInternalAPI,
keyRing *gomatrixserverlib.KeyRing,
producer *producers.SyncAPIProducer,
diff --git a/relayapi/internal/perform_test.go b/relayapi/internal/perform_test.go
index 111fb46b..f97c5aa9 100644
--- a/relayapi/internal/perform_test.go
+++ b/relayapi/internal/perform_test.go
@@ -19,7 +19,6 @@ import (
"fmt"
"testing"
- fedAPI "github.com/matrix-org/dendrite/federationapi/api"
"github.com/matrix-org/dendrite/internal/sqlutil"
"github.com/matrix-org/dendrite/relayapi/storage/shared"
"github.com/matrix-org/dendrite/test"
@@ -30,7 +29,7 @@ import (
)
type testFedClient struct {
- fedAPI.FederationClient
+ fclient.FederationClient
shouldFail bool
queryCount uint
queueDepth uint
diff --git a/relayapi/relayapi.go b/relayapi/relayapi.go
index bae6b0cf..acabb4b2 100644
--- a/relayapi/relayapi.go
+++ b/relayapi/relayapi.go
@@ -54,7 +54,7 @@ func AddPublicRoutes(
func NewRelayInternalAPI(
dendriteCfg *config.Dendrite,
cm sqlutil.Connections,
- fedClient *fclient.FederationClient,
+ fedClient fclient.FederationClient,
rsAPI rsAPI.RoomserverInternalAPI,
keyRing *gomatrixserverlib.KeyRing,
producer *producers.SyncAPIProducer,