From 0978630b552b0f88bf5efc1c59860cbeb706606d Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 22 May 2020 14:11:06 +0100 Subject: [PATCH] Fix monolith room server-federation sender connection --- cmd/dendrite-monolith-server/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/dendrite-monolith-server/main.go b/cmd/dendrite-monolith-server/main.go index ded0934ae..f9993774f 100644 --- a/cmd/dendrite-monolith-server/main.go +++ b/cmd/dendrite-monolith-server/main.go @@ -71,9 +71,10 @@ func main() { federation := base.CreateFederationClient() keyRing := keydb.CreateKeyRing(federation.Client, keyDB, cfg.Matrix.KeyPerspectives) - rsAPI := roomserver.SetupRoomServerComponent( + rsComponent := roomserver.SetupRoomServerComponent( base, keyRing, federation, ) + rsAPI := rsComponent if base.EnableHTTPAPIs { rsAPI = base.CreateHTTPRoomserverAPIs() } @@ -98,7 +99,7 @@ func main() { if base.EnableHTTPAPIs { fsAPI = base.CreateHTTPFederationSenderAPIs() } - rsAPI.SetFederationSenderAPI(fsAPI) + rsComponent.SetFederationSenderAPI(fsAPI) clientapi.SetupClientAPIComponent( base, deviceDB, accountDB,