aboutsummaryrefslogtreecommitdiff
path: root/cmd/dendrite-monolith-server/main.go
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-08-04 11:32:14 +0100
committerGitHub <noreply@github.com>2020-08-04 11:32:14 +0100
commit0c4e8f6d4f0f39d2bd72807675295e4fad70479c (patch)
tree9560b73d1aa1a62d0bff700523b1ea9586cdb7cf /cmd/dendrite-monolith-server/main.go
parentfb56bbf0b7d4b21da3f55b066e71d24bf4599887 (diff)
Send device list updates to servers (outbound only) (#1237)
* Add QueryDeviceMessages to serve up device keys and stream IDs * Consume key change events in fedsender Don't yet send them to destinations as we haven't worked them out yet * Send device list updates to all required servers * Glue it all together
Diffstat (limited to 'cmd/dendrite-monolith-server/main.go')
-rw-r--r--cmd/dendrite-monolith-server/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/dendrite-monolith-server/main.go b/cmd/dendrite-monolith-server/main.go
index bce5fce0..c75ef8fb 100644
--- a/cmd/dendrite-monolith-server/main.go
+++ b/cmd/dendrite-monolith-server/main.go
@@ -109,8 +109,10 @@ func main() {
asAPI = base.AppserviceHTTPClient()
}
+ stateAPI := currentstateserver.NewInternalAPI(base.Cfg, base.KafkaConsumer)
+
fsAPI := federationsender.NewInternalAPI(
- base, federation, rsAPI, keyRing,
+ base, federation, rsAPI, stateAPI, keyRing,
)
if base.UseHTTPAPIs {
federationsender.AddInternalRoutes(base.InternalAPIMux, fsAPI)
@@ -120,8 +122,6 @@ func main() {
// This is different to rsAPI which can be the http client which doesn't need this dependency
rsImpl.SetFederationSenderAPI(fsAPI)
- stateAPI := currentstateserver.NewInternalAPI(base.Cfg, base.KafkaConsumer)
-
monolith := setup.Monolith{
Config: base.Cfg,
AccountDB: accountDB,