aboutsummaryrefslogtreecommitdiff
path: root/federationsender/storage/storage.go
diff options
context:
space:
mode:
Diffstat (limited to 'federationsender/storage/storage.go')
-rw-r--r--federationsender/storage/storage.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/federationsender/storage/storage.go b/federationsender/storage/storage.go
index 4ce151c7..e83c1e9d 100644
--- a/federationsender/storage/storage.go
+++ b/federationsender/storage/storage.go
@@ -20,6 +20,7 @@ import (
"github.com/matrix-org/dendrite/common"
"github.com/matrix-org/dendrite/federationsender/storage/postgres"
+ "github.com/matrix-org/dendrite/federationsender/storage/sqlite3"
"github.com/matrix-org/dendrite/federationsender/types"
)
@@ -36,6 +37,8 @@ func NewDatabase(dataSourceName string) (Database, error) {
return postgres.NewDatabase(dataSourceName)
}
switch uri.Scheme {
+ case "file":
+ return sqlite3.NewDatabase(dataSourceName)
case "postgres":
return postgres.NewDatabase(dataSourceName)
default: