aboutsummaryrefslogtreecommitdiff
path: root/federationsender/federationsender.go
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 /federationsender/federationsender.go
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 'federationsender/federationsender.go')
-rw-r--r--federationsender/federationsender.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/federationsender/federationsender.go b/federationsender/federationsender.go
index a06caf40..355775f8 100644
--- a/federationsender/federationsender.go
+++ b/federationsender/federationsender.go
@@ -36,7 +36,7 @@ func SetupFederationSenderComponent(
federation *gomatrixserverlib.FederationClient,
rsQueryAPI roomserverAPI.RoomserverQueryAPI,
rsInputAPI roomserverAPI.RoomserverInputAPI,
-) api.FederationSenderQueryAPI {
+) api.FederationSenderInternalAPI {
federationSenderDB, err := storage.NewDatabase(string(base.Cfg.Database.FederationSender))
if err != nil {
logrus.WithError(err).Panic("failed to connect to federation sender db")
@@ -61,7 +61,7 @@ func SetupFederationSenderComponent(
logrus.WithError(err).Panic("failed to start typing server consumer")
}
- queryAPI := query.FederationSenderQueryAPI{
+ queryAPI := query.FederationSenderInternalAPI{
DB: federationSenderDB,
}
queryAPI.SetupHTTP(http.DefaultServeMux)