aboutsummaryrefslogtreecommitdiff
path: root/cmd/dendritejs/main.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-10-15 13:27:13 +0100
committerGitHub <noreply@github.com>2020-10-15 13:27:13 +0100
commit49abe359e6a2b0c3f214190b73404c5cf9a0e051 (patch)
treeade4613526d0f6a306cd7117c8f77ab30b151ea0 /cmd/dendritejs/main.go
parent10f1beb0de7a52ccdd122b05b4adffdbdab4ea2e (diff)
Start Kafka connections for each component that needs them (#1527)
* Start Kafka connection for each component that needs one * Fix roomserver unit tests * Rename to naffkaInstance (@Kegsay review comment) * Fix import cycle
Diffstat (limited to 'cmd/dendritejs/main.go')
-rw-r--r--cmd/dendritejs/main.go14
1 files changed, 6 insertions, 8 deletions
diff --git a/cmd/dendritejs/main.go b/cmd/dendritejs/main.go
index 2d7f8b02..85cc8a9f 100644
--- a/cmd/dendritejs/main.go
+++ b/cmd/dendritejs/main.go
@@ -190,7 +190,7 @@ func main() {
accountDB := base.CreateAccountsDB()
federation := createFederationClient(cfg, node)
- keyAPI := keyserver.NewInternalAPI(&base.Cfg.KeyServer, federation, base.KafkaProducer)
+ keyAPI := keyserver.NewInternalAPI(&base.Cfg.KeyServer, federation)
userAPI := userapi.NewInternalAPI(accountDB, &cfg.UserAPI, nil, keyAPI)
keyAPI.SetUserAPI(userAPI)
@@ -212,13 +212,11 @@ func main() {
p2pPublicRoomProvider := NewLibP2PPublicRoomsProvider(node, fedSenderAPI, federation)
monolith := setup.Monolith{
- Config: base.Cfg,
- AccountDB: accountDB,
- Client: createClient(node),
- FedClient: federation,
- KeyRing: &keyRing,
- KafkaConsumer: base.KafkaConsumer,
- KafkaProducer: base.KafkaProducer,
+ Config: base.Cfg,
+ AccountDB: accountDB,
+ Client: createClient(node),
+ FedClient: federation,
+ KeyRing: &keyRing,
AppserviceAPI: asQuery,
EDUInternalAPI: eduInputAPI,