aboutsummaryrefslogtreecommitdiff
path: root/syncapi/storage/storage_wasm.go
diff options
context:
space:
mode:
Diffstat (limited to 'syncapi/storage/storage_wasm.go')
-rw-r--r--syncapi/storage/storage_wasm.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/syncapi/storage/storage_wasm.go b/syncapi/storage/storage_wasm.go
index 43806a01..84bd9df9 100644
--- a/syncapi/storage/storage_wasm.go
+++ b/syncapi/storage/storage_wasm.go
@@ -18,11 +18,15 @@ import (
"fmt"
"net/url"
+ "github.com/matrix-org/dendrite/common"
"github.com/matrix-org/dendrite/syncapi/storage/sqlite3"
)
// NewPublicRoomsServerDatabase opens a database connection.
-func NewSyncServerDatasource(dataSourceName string) (Database, error) {
+func NewSyncServerDatasource(
+ dataSourceName string,
+ dbProperties common.DbProperties, // nolint:unparam
+) (Database, error) {
uri, err := url.Parse(dataSourceName)
if err != nil {
return nil, fmt.Errorf("Cannot use postgres implementation")