aboutsummaryrefslogtreecommitdiff
path: root/clientapi
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-04-29 11:34:31 +0100
committerGitHub <noreply@github.com>2020-04-29 11:34:31 +0100
commita308e61331f549ae0964f83dff88abc282033ed3 (patch)
tree7dad59cce409fd1f3e806d0b928b141a4fc7fcd5 /clientapi
parenta4b9edb28e32b505cf3a67bcba1acacd4a882155 (diff)
Federation sender API remodel (#988)
* Define an input API for the federationsender * Wiring for rooomserver input API and federation sender input API * Whoops, commit common too * Merge input API into query API * Rename FederationSenderQueryAPI to FederationSenderInternalAPI * Fix dendritejs * Rename Input to Perform * Fix a couple of inputs -> performs * Remove needless storage interface, add comments
Diffstat (limited to 'clientapi')
-rw-r--r--clientapi/clientapi.go4
-rw-r--r--clientapi/routing/directory.go2
-rw-r--r--clientapi/routing/routing.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/clientapi/clientapi.go b/clientapi/clientapi.go
index 1339f7c8..6a857e52 100644
--- a/clientapi/clientapi.go
+++ b/clientapi/clientapi.go
@@ -44,7 +44,7 @@ func SetupClientAPIComponent(
eduInputAPI eduServerAPI.EDUServerInputAPI,
asAPI appserviceAPI.AppServiceQueryAPI,
transactionsCache *transactions.Cache,
- fedSenderAPI federationSenderAPI.FederationSenderQueryAPI,
+ fsAPI federationSenderAPI.FederationSenderInternalAPI,
) {
roomserverProducer := producers.NewRoomserverProducer(inputAPI, queryAPI)
eduProducer := producers.NewEDUServerProducer(eduInputAPI)
@@ -69,6 +69,6 @@ func SetupClientAPIComponent(
routing.Setup(
base.APIMux, base.Cfg, roomserverProducer, queryAPI, aliasAPI, asAPI,
accountsDB, deviceDB, federation, *keyRing, userUpdateProducer,
- syncProducer, eduProducer, transactionsCache, fedSenderAPI,
+ syncProducer, eduProducer, transactionsCache, fsAPI,
)
}
diff --git a/clientapi/routing/directory.go b/clientapi/routing/directory.go
index 248696ab..101ba11f 100644
--- a/clientapi/routing/directory.go
+++ b/clientapi/routing/directory.go
@@ -47,7 +47,7 @@ func DirectoryRoom(
federation *gomatrixserverlib.FederationClient,
cfg *config.Dendrite,
rsAPI roomserverAPI.RoomserverAliasAPI,
- fedSenderAPI federationSenderAPI.FederationSenderQueryAPI,
+ fedSenderAPI federationSenderAPI.FederationSenderInternalAPI,
) util.JSONResponse {
_, domain, err := gomatrixserverlib.SplitID('#', roomAlias)
if err != nil {
diff --git a/clientapi/routing/routing.go b/clientapi/routing/routing.go
index 5dc6d7db..9ab22cbe 100644
--- a/clientapi/routing/routing.go
+++ b/clientapi/routing/routing.go
@@ -60,7 +60,7 @@ func Setup(
syncProducer *producers.SyncAPIProducer,
eduProducer *producers.EDUServerProducer,
transactionsCache *transactions.Cache,
- federationSender federationSenderAPI.FederationSenderQueryAPI,
+ federationSender federationSenderAPI.FederationSenderInternalAPI,
) {
apiMux.Handle("/_matrix/client/versions",