aboutsummaryrefslogtreecommitdiff
path: root/roomserver/storage/postgres/transactions_table.go
diff options
context:
space:
mode:
Diffstat (limited to 'roomserver/storage/postgres/transactions_table.go')
-rw-r--r--roomserver/storage/postgres/transactions_table.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/roomserver/storage/postgres/transactions_table.go b/roomserver/storage/postgres/transactions_table.go
index 7f7ef76a..5e59ae16 100644
--- a/roomserver/storage/postgres/transactions_table.go
+++ b/roomserver/storage/postgres/transactions_table.go
@@ -19,6 +19,7 @@ import (
"context"
"database/sql"
+ "github.com/matrix-org/dendrite/roomserver/storage/shared"
"github.com/matrix-org/dendrite/roomserver/storage/tables"
)
@@ -60,10 +61,10 @@ func NewPostgresTransactionsTable(db *sql.DB) (tables.Transactions, error) {
return nil, err
}
- return s, statementList{
+ return s, shared.StatementList{
{&s.insertTransactionStmt, insertTransactionSQL},
{&s.selectTransactionEventIDStmt, selectTransactionEventIDSQL},
- }.prepare(db)
+ }.Prepare(db)
}
func (s *transactionStatements) InsertTransaction(