aboutsummaryrefslogtreecommitdiff
path: root/cmd/dendrite-client-api-server/main.go
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-06-30 13:34:59 +0100
committerGitHub <noreply@github.com>2020-06-30 13:34:59 +0100
commit6f49758b90d655d9c2bb9170da2ea1d0a2bdd664 (patch)
treef434cc48f27c3915fffdb39c5b907fd021d4ff61 /cmd/dendrite-client-api-server/main.go
parentca5bbffd8d987b220c8f8eb888a2fc9b9cef104c (diff)
Remove membership table from account DB (#1172)
* Remove membership table from account DB And make code which needs that data use the currentstate server * Unbreak tests; use a membership enum for space
Diffstat (limited to 'cmd/dendrite-client-api-server/main.go')
-rw-r--r--cmd/dendrite-client-api-server/main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/dendrite-client-api-server/main.go b/cmd/dendrite-client-api-server/main.go
index fe5f30a0..f46dae50 100644
--- a/cmd/dendrite-client-api-server/main.go
+++ b/cmd/dendrite-client-api-server/main.go
@@ -35,10 +35,11 @@ func main() {
fsAPI := base.FederationSenderHTTPClient()
eduInputAPI := base.EDUServerClient()
userAPI := base.UserAPIClient()
+ stateAPI := base.CurrentStateAPIClient()
clientapi.AddPublicRoutes(
- base.PublicAPIMux, base.Cfg, base.KafkaConsumer, base.KafkaProducer, deviceDB, accountDB, federation,
- rsAPI, eduInputAPI, asQuery, transactions.New(), fsAPI, userAPI,
+ base.PublicAPIMux, base.Cfg, base.KafkaProducer, deviceDB, accountDB, federation,
+ rsAPI, eduInputAPI, asQuery, stateAPI, transactions.New(), fsAPI, userAPI,
)
base.SetupAndServeHTTP(string(base.Cfg.Bind.ClientAPI), string(base.Cfg.Listen.ClientAPI))