aboutsummaryrefslogtreecommitdiff
path: root/userapi/storage/accounts/storage_wasm.go
diff options
context:
space:
mode:
Diffstat (limited to 'userapi/storage/accounts/storage_wasm.go')
-rw-r--r--userapi/storage/accounts/storage_wasm.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/userapi/storage/accounts/storage_wasm.go b/userapi/storage/accounts/storage_wasm.go
index dcaf371a..8038326f 100644
--- a/userapi/storage/accounts/storage_wasm.go
+++ b/userapi/storage/accounts/storage_wasm.go
@@ -25,10 +25,11 @@ import (
func NewDatabase(
dbProperties *config.DatabaseOptions,
serverName gomatrixserverlib.ServerName,
+ bcryptCost int,
) (Database, error) {
switch {
case dbProperties.ConnectionString.IsSQLite():
- return sqlite3.NewDatabase(dbProperties, serverName)
+ return sqlite3.NewDatabase(dbProperties, serverName, bcryptCost)
case dbProperties.ConnectionString.IsPostgres():
return nil, fmt.Errorf("can't use Postgres implementation")
default: