aboutsummaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2022-04-27 15:05:49 +0200
committerGitHub <noreply@github.com>2022-04-27 15:05:49 +0200
commitf023cdf8c42cc1a4bb850b478dbbf7d901b5e1bd (patch)
tree5698494b5438a721976a1f685dcd29301538a7d7 /setup
parentd7cc187ec00410b949ffae1625835f8ac9f36c29 (diff)
Add UserAPI storage tests (#2384)
* Add tests for parts of the userapi storage * Add tests for keybackup * Add LoginToken tests * Add OpenID tests * Add profile tests * Add pusher tests * Add ThreePID tests * Add notification tests * Add more device tests, fix numeric localpart query * Fix failing CI * Fix numeric local part query
Diffstat (limited to 'setup')
-rw-r--r--setup/base/base.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/setup/base/base.go b/setup/base/base.go
index 28115344..dbc5d239 100644
--- a/setup/base/base.go
+++ b/setup/base/base.go
@@ -21,6 +21,7 @@ import (
"io"
"net"
"net/http"
+ _ "net/http/pprof"
"os"
"os/signal"
"syscall"
@@ -56,8 +57,6 @@ import (
userapi "github.com/matrix-org/dendrite/userapi/api"
userapiinthttp "github.com/matrix-org/dendrite/userapi/inthttp"
"github.com/sirupsen/logrus"
-
- _ "net/http/pprof"
)
// BaseDendrite is a base for creating new instances of dendrite. It parses
@@ -273,7 +272,7 @@ func (b *BaseDendrite) PushGatewayHTTPClient() pushgateway.Client {
// CreateAccountsDB creates a new instance of the accounts database. Should only
// be called once per component.
func (b *BaseDendrite) CreateAccountsDB() userdb.Database {
- db, err := userdb.NewDatabase(
+ db, err := userdb.NewUserAPIDatabase(
&b.Cfg.UserAPI.AccountDatabase,
b.Cfg.Global.ServerName,
b.Cfg.UserAPI.BCryptCost,