aboutsummaryrefslogtreecommitdiff
path: root/userapi
diff options
context:
space:
mode:
authorTill Faelligen <tfaelligen@gmail.com>2022-03-03 17:04:18 +0100
committerTill Faelligen <tfaelligen@gmail.com>2022-03-03 17:04:18 +0100
commitc44029f269d0b17102dbbf31e50669c7c93fe50e (patch)
tree325ea89541377529dc892b226477b6a0e8faa609 /userapi
parentb6b2455ecd11538445aa938870db3bc7201fdde1 (diff)
Don't open two connections for the userapi
Diffstat (limited to 'userapi')
-rw-r--r--userapi/userapi.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/userapi/userapi.go b/userapi/userapi.go
index 2382e951..8dbc095f 100644
--- a/userapi/userapi.go
+++ b/userapi/userapi.go
@@ -15,8 +15,6 @@
package userapi
import (
- "time"
-
"github.com/gorilla/mux"
"github.com/matrix-org/dendrite/internal/pushgateway"
keyapi "github.com/matrix-org/dendrite/keyserver/api"
@@ -46,11 +44,6 @@ func NewInternalAPI(
appServices []config.ApplicationService, keyAPI keyapi.KeyInternalAPI,
rsAPI rsapi.RoomserverInternalAPI, pgClient pushgateway.Client,
) api.UserInternalAPI {
- db, err := storage.NewDatabase(&cfg.AccountDatabase, cfg.Matrix.ServerName, cfg.BCryptCost, int64(api.DefaultLoginTokenLifetime*time.Millisecond), api.DefaultLoginTokenLifetime)
- if err != nil {
- logrus.WithError(err).Panicf("failed to connect to device db")
- }
-
js := jetstream.Prepare(&cfg.Matrix.JetStream)
syncProducer := producers.NewSyncAPI(