aboutsummaryrefslogtreecommitdiff
path: root/keyserver/storage/sqlite3/storage.go
diff options
context:
space:
mode:
Diffstat (limited to 'keyserver/storage/sqlite3/storage.go')
-rw-r--r--keyserver/storage/sqlite3/storage.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/keyserver/storage/sqlite3/storage.go b/keyserver/storage/sqlite3/storage.go
index 1a2a237f..1d5382c0 100644
--- a/keyserver/storage/sqlite3/storage.go
+++ b/keyserver/storage/sqlite3/storage.go
@@ -25,25 +25,25 @@ func NewDatabase(dbProperties *config.DatabaseOptions) (*shared.Database, error)
if err != nil {
return nil, err
}
- writer := sqlutil.NewExclusiveWriter()
- otk, err := NewSqliteOneTimeKeysTable(db, writer)
+ otk, err := NewSqliteOneTimeKeysTable(db)
if err != nil {
return nil, err
}
- dk, err := NewSqliteDeviceKeysTable(db, writer)
+ dk, err := NewSqliteDeviceKeysTable(db)
if err != nil {
return nil, err
}
- kc, err := NewSqliteKeyChangesTable(db, writer)
+ kc, err := NewSqliteKeyChangesTable(db)
if err != nil {
return nil, err
}
- sdl, err := NewSqliteStaleDeviceListsTable(db, writer)
+ sdl, err := NewSqliteStaleDeviceListsTable(db)
if err != nil {
return nil, err
}
return &shared.Database{
DB: db,
+ Writer: sqlutil.NewExclusiveWriter(),
OneTimeKeysTable: otk,
DeviceKeysTable: dk,
KeyChangesTable: kc,