aboutsummaryrefslogtreecommitdiff
path: root/federationapi/federationapi.go
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-06-10 12:17:54 +0100
committerGitHub <noreply@github.com>2020-06-10 12:17:54 +0100
commitb7187a9a354530c1846c2a97be701ea484f91c2c (patch)
tree6d14903a444fa8bca964247dbe85ae8d9709d4c8 /federationapi/federationapi.go
parentd9d6f4568ce891ae0ae9d2a3449974d3777bd21d (diff)
Remove clientapi producers which aren't actually producers (#1111)
* Remove clientapi producers which aren't actually producers They are actually just convenience wrappers around the internal APIs for roomserver/eduserver. Move their logic to their respective `api` packages and call them directly. * Remove TODO * unbreak ygg
Diffstat (limited to 'federationapi/federationapi.go')
-rw-r--r--federationapi/federationapi.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/federationapi/federationapi.go b/federationapi/federationapi.go
index 7aecd272..9299b501 100644
--- a/federationapi/federationapi.go
+++ b/federationapi/federationapi.go
@@ -19,12 +19,11 @@ import (
appserviceAPI "github.com/matrix-org/dendrite/appservice/api"
"github.com/matrix-org/dendrite/clientapi/auth/storage/accounts"
"github.com/matrix-org/dendrite/clientapi/auth/storage/devices"
+ eduserverAPI "github.com/matrix-org/dendrite/eduserver/api"
federationSenderAPI "github.com/matrix-org/dendrite/federationsender/api"
"github.com/matrix-org/dendrite/internal/config"
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
- // TODO: Are we really wanting to pull in the producer from clientapi
- "github.com/matrix-org/dendrite/clientapi/producers"
"github.com/matrix-org/dendrite/federationapi/routing"
"github.com/matrix-org/gomatrixserverlib"
)
@@ -40,13 +39,12 @@ func AddPublicRoutes(
rsAPI roomserverAPI.RoomserverInternalAPI,
asAPI appserviceAPI.AppServiceQueryAPI,
federationSenderAPI federationSenderAPI.FederationSenderInternalAPI,
- eduProducer *producers.EDUServerProducer,
+ eduAPI eduserverAPI.EDUServerInputAPI,
) {
- roomserverProducer := producers.NewRoomserverProducer(rsAPI)
routing.Setup(
- router, cfg, rsAPI, asAPI, roomserverProducer,
- eduProducer, federationSenderAPI, *keyRing,
+ router, cfg, rsAPI, asAPI,
+ eduAPI, federationSenderAPI, *keyRing,
federation, accountsDB, deviceDB,
)
}