aboutsummaryrefslogtreecommitdiff
path: root/keyserver/storage/sqlite3/device_keys_table.go
diff options
context:
space:
mode:
Diffstat (limited to 'keyserver/storage/sqlite3/device_keys_table.go')
-rw-r--r--keyserver/storage/sqlite3/device_keys_table.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/keyserver/storage/sqlite3/device_keys_table.go b/keyserver/storage/sqlite3/device_keys_table.go
index c95790be..2af33761 100644
--- a/keyserver/storage/sqlite3/device_keys_table.go
+++ b/keyserver/storage/sqlite3/device_keys_table.go
@@ -63,7 +63,7 @@ const deleteAllDeviceKeysSQL = "" +
type deviceKeysStatements struct {
db *sql.DB
- writer sqlutil.TransactionWriter
+ writer sqlutil.Writer
upsertDeviceKeysStmt *sql.Stmt
selectDeviceKeysStmt *sql.Stmt
selectBatchDeviceKeysStmt *sql.Stmt
@@ -71,10 +71,10 @@ type deviceKeysStatements struct {
deleteAllDeviceKeysStmt *sql.Stmt
}
-func NewSqliteDeviceKeysTable(db *sql.DB) (tables.DeviceKeys, error) {
+func NewSqliteDeviceKeysTable(db *sql.DB, writer sqlutil.Writer) (tables.DeviceKeys, error) {
s := &deviceKeysStatements{
db: db,
- writer: sqlutil.NewTransactionWriter(),
+ writer: writer,
}
_, err := db.Exec(deviceKeysSchema)
if err != nil {