aboutsummaryrefslogtreecommitdiff
path: root/federationsender/federationsender.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-04-28 10:53:07 +0100
committerGitHub <noreply@github.com>2020-04-28 10:53:07 +0100
commit3a858afca2368f588b2681de4f4816f26686f540 (patch)
treedecbd7c588c7d65d005f5f6718522c301d879b30 /federationsender/federationsender.go
parent87f05721b07cc6d57bcb4ce1d9ad77a9e1847054 (diff)
Loopback event from invite response (#982)
* Working invite v2 support * Fix copyright notice * Update gomatrixserverlib * Add fallthrough * Add missing continue * Update sytest-whitelist, gomatrixserverlib * Update gomatrixserverlib to test matrix-org/gomatrixserverlib#181 * Update gomatrixserverlib
Diffstat (limited to 'federationsender/federationsender.go')
-rw-r--r--federationsender/federationsender.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/federationsender/federationsender.go b/federationsender/federationsender.go
index a318d209..a06caf40 100644
--- a/federationsender/federationsender.go
+++ b/federationsender/federationsender.go
@@ -20,6 +20,7 @@ import (
"github.com/matrix-org/dendrite/common/basecomponent"
"github.com/matrix-org/dendrite/federationsender/api"
"github.com/matrix-org/dendrite/federationsender/consumers"
+ "github.com/matrix-org/dendrite/federationsender/producers"
"github.com/matrix-org/dendrite/federationsender/query"
"github.com/matrix-org/dendrite/federationsender/queue"
"github.com/matrix-org/dendrite/federationsender/storage"
@@ -34,13 +35,16 @@ func SetupFederationSenderComponent(
base *basecomponent.BaseDendrite,
federation *gomatrixserverlib.FederationClient,
rsQueryAPI roomserverAPI.RoomserverQueryAPI,
+ rsInputAPI roomserverAPI.RoomserverInputAPI,
) api.FederationSenderQueryAPI {
federationSenderDB, err := storage.NewDatabase(string(base.Cfg.Database.FederationSender))
if err != nil {
logrus.WithError(err).Panic("failed to connect to federation sender db")
}
- queues := queue.NewOutgoingQueues(base.Cfg.Matrix.ServerName, federation)
+ roomserverProducer := producers.NewRoomserverProducer(rsInputAPI, base.Cfg.Matrix.ServerName)
+
+ queues := queue.NewOutgoingQueues(base.Cfg.Matrix.ServerName, federation, roomserverProducer)
rsConsumer := consumers.NewOutputRoomEventConsumer(
base.Cfg, base.KafkaConsumer, queues,