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.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/keyserver/storage/sqlite3/storage.go b/keyserver/storage/sqlite3/storage.go
index bb293558..1a2a237f 100644
--- a/keyserver/storage/sqlite3/storage.go
+++ b/keyserver/storage/sqlite3/storage.go
@@ -25,19 +25,20 @@ func NewDatabase(dbProperties *config.DatabaseOptions) (*shared.Database, error)
if err != nil {
return nil, err
}
- otk, err := NewSqliteOneTimeKeysTable(db)
+ writer := sqlutil.NewExclusiveWriter()
+ otk, err := NewSqliteOneTimeKeysTable(db, writer)
if err != nil {
return nil, err
}
- dk, err := NewSqliteDeviceKeysTable(db)
+ dk, err := NewSqliteDeviceKeysTable(db, writer)
if err != nil {
return nil, err
}
- kc, err := NewSqliteKeyChangesTable(db)
+ kc, err := NewSqliteKeyChangesTable(db, writer)
if err != nil {
return nil, err
}
- sdl, err := NewSqliteStaleDeviceListsTable(db)
+ sdl, err := NewSqliteStaleDeviceListsTable(db, writer)
if err != nil {
return nil, err
}