diff options
Diffstat (limited to 'roomserver/storage/sqlite3/room_aliases_table.go')
-rw-r--r-- | roomserver/storage/sqlite3/room_aliases_table.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roomserver/storage/sqlite3/room_aliases_table.go b/roomserver/storage/sqlite3/room_aliases_table.go index 4a535777..deba3ff5 100644 --- a/roomserver/storage/sqlite3/room_aliases_table.go +++ b/roomserver/storage/sqlite3/room_aliases_table.go @@ -65,10 +65,10 @@ type roomAliasesStatements struct { deleteRoomAliasStmt *sql.Stmt } -func NewSqliteRoomAliasesTable(db *sql.DB) (tables.RoomAliases, error) { +func NewSqliteRoomAliasesTable(db *sql.DB, writer *sqlutil.TransactionWriter) (tables.RoomAliases, error) { s := &roomAliasesStatements{ db: db, - writer: sqlutil.NewTransactionWriter(), + writer: writer, } _, err := db.Exec(roomAliasesSchema) if err != nil { |