diff options
author | S7evinK <2353100+S7evinK@users.noreply.github.com> | 2022-03-24 22:45:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-24 22:45:44 +0100 |
commit | f2e550efd832662e6c032bebfef4a68da0b4c8ee (patch) | |
tree | f46d0e82f85f0e30687fe568a26c0923e8f14a83 /cmd/dendrite-polylith-multi | |
parent | 8e76523b04e3ebc9546f2b019e86dcd3b516be5a (diff) |
Refactor appservice & client API to use userapi internal (#2290)
* Refactor user api internal
* Refactor clientapi to use internal userapi
* Use internal userapi instead of user DB directly
* Remove AccountDB dependency
* Fix linter issues
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Diffstat (limited to 'cmd/dendrite-polylith-multi')
-rw-r--r-- | cmd/dendrite-polylith-multi/personalities/clientapi.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/dendrite-polylith-multi/personalities/clientapi.go b/cmd/dendrite-polylith-multi/personalities/clientapi.go index 5e67acd0..a2036de3 100644 --- a/cmd/dendrite-polylith-multi/personalities/clientapi.go +++ b/cmd/dendrite-polylith-multi/personalities/clientapi.go @@ -22,7 +22,6 @@ import ( ) func ClientAPI(base *basepkg.BaseDendrite, cfg *config.Dendrite) { - accountDB := base.CreateAccountsDB() federation := base.CreateFederationClient() asQuery := base.AppserviceHTTPClient() @@ -34,7 +33,7 @@ func ClientAPI(base *basepkg.BaseDendrite, cfg *config.Dendrite) { clientapi.AddPublicRoutes( base.ProcessContext, base.PublicClientAPIMux, base.SynapseAdminMux, &base.Cfg.ClientAPI, - accountDB, federation, rsAPI, eduInputAPI, asQuery, transactions.New(), fsAPI, userAPI, + federation, rsAPI, eduInputAPI, asQuery, transactions.New(), fsAPI, userAPI, keyAPI, nil, &cfg.MSCs, ) |