mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 23:48:27 +00:00
Fix monolith room server-federation sender connection
This commit is contained in:
parent
3d06fe91f2
commit
0978630b55
1 changed files with 3 additions and 2 deletions
|
@ -71,9 +71,10 @@ func main() {
|
||||||
federation := base.CreateFederationClient()
|
federation := base.CreateFederationClient()
|
||||||
keyRing := keydb.CreateKeyRing(federation.Client, keyDB, cfg.Matrix.KeyPerspectives)
|
keyRing := keydb.CreateKeyRing(federation.Client, keyDB, cfg.Matrix.KeyPerspectives)
|
||||||
|
|
||||||
rsAPI := roomserver.SetupRoomServerComponent(
|
rsComponent := roomserver.SetupRoomServerComponent(
|
||||||
base, keyRing, federation,
|
base, keyRing, federation,
|
||||||
)
|
)
|
||||||
|
rsAPI := rsComponent
|
||||||
if base.EnableHTTPAPIs {
|
if base.EnableHTTPAPIs {
|
||||||
rsAPI = base.CreateHTTPRoomserverAPIs()
|
rsAPI = base.CreateHTTPRoomserverAPIs()
|
||||||
}
|
}
|
||||||
|
@ -98,7 +99,7 @@ func main() {
|
||||||
if base.EnableHTTPAPIs {
|
if base.EnableHTTPAPIs {
|
||||||
fsAPI = base.CreateHTTPFederationSenderAPIs()
|
fsAPI = base.CreateHTTPFederationSenderAPIs()
|
||||||
}
|
}
|
||||||
rsAPI.SetFederationSenderAPI(fsAPI)
|
rsComponent.SetFederationSenderAPI(fsAPI)
|
||||||
|
|
||||||
clientapi.SetupClientAPIComponent(
|
clientapi.SetupClientAPIComponent(
|
||||||
base, deviceDB, accountDB,
|
base, deviceDB, accountDB,
|
||||||
|
|
Loading…
Reference in a new issue