mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
add encryptoapi to main in monolith server
This commit is contained in:
parent
40955a378a
commit
ba19d86d47
|
|
@ -34,6 +34,7 @@ import (
|
|||
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/matrix-org/dendrite/encryptoapi"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -56,6 +57,8 @@ func main() {
|
|||
|
||||
alias, input, query := roomserver.SetupRoomServerComponent(base)
|
||||
|
||||
encryptoapi.SetupEcryptoapi(base, accountDB, deviceDB)
|
||||
|
||||
clientapi.SetupClientAPIComponent(
|
||||
base, deviceDB, accountDB,
|
||||
federation, &keyRing, alias, input, query,
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ func SetupEcryptoapi(
|
|||
base *basecomponent.BaseDendrite,
|
||||
accountsDB *accounts.Database,
|
||||
deviceDB *devices.Database,
|
||||
|
||||
) {
|
||||
|
||||
encryptionDB, err := storage.NewDatabase(string(base.Cfg.Database.EncryptAPI))
|
||||
|
|
|
|||
Loading…
Reference in a new issue