add encryptoapi to main in monolith server

This commit is contained in:
terrill 2018-07-03 10:40:31 +08:00
parent 40955a378a
commit ba19d86d47
2 changed files with 3 additions and 1 deletions

View file

@ -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,

View file

@ -31,7 +31,6 @@ func SetupEcryptoapi(
base *basecomponent.BaseDendrite,
accountsDB *accounts.Database,
deviceDB *devices.Database,
) {
encryptionDB, err := storage.NewDatabase(string(base.Cfg.Database.EncryptAPI))