aboutsummaryrefslogtreecommitdiff
path: root/federationsender/storage/postgres/storage.go
diff options
context:
space:
mode:
Diffstat (limited to 'federationsender/storage/postgres/storage.go')
-rw-r--r--federationsender/storage/postgres/storage.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/federationsender/storage/postgres/storage.go b/federationsender/storage/postgres/storage.go
index b909a189..c3892ac1 100644
--- a/federationsender/storage/postgres/storage.go
+++ b/federationsender/storage/postgres/storage.go
@@ -33,10 +33,10 @@ type Database struct {
}
// NewDatabase opens a new database
-func NewDatabase(dataSourceName string) (*Database, error) {
+func NewDatabase(dataSourceName string, dbProperties common.DbProperties) (*Database, error) {
var result Database
var err error
- if result.db, err = sqlutil.Open("postgres", dataSourceName); err != nil {
+ if result.db, err = sqlutil.Open("postgres", dataSourceName, dbProperties); err != nil {
return nil, err
}
if err = result.prepare(); err != nil {