aboutsummaryrefslogtreecommitdiff
path: root/syncapi/storage/sqlite3/stream_id_table.go
diff options
context:
space:
mode:
Diffstat (limited to 'syncapi/storage/sqlite3/stream_id_table.go')
-rw-r--r--syncapi/storage/sqlite3/stream_id_table.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/syncapi/storage/sqlite3/stream_id_table.go b/syncapi/storage/sqlite3/stream_id_table.go
index 260f7a95..3bfe22dd 100644
--- a/syncapi/storage/sqlite3/stream_id_table.go
+++ b/syncapi/storage/sqlite3/stream_id_table.go
@@ -4,7 +4,7 @@ import (
"context"
"database/sql"
- "github.com/matrix-org/dendrite/common"
+ "github.com/matrix-org/dendrite/internal"
"github.com/matrix-org/dendrite/syncapi/types"
)
@@ -46,8 +46,8 @@ func (s *streamIDStatements) prepare(db *sql.DB) (err error) {
}
func (s *streamIDStatements) nextStreamID(ctx context.Context, txn *sql.Tx) (pos types.StreamPosition, err error) {
- increaseStmt := common.TxStmt(txn, s.increaseStreamIDStmt)
- selectStmt := common.TxStmt(txn, s.selectStreamIDStmt)
+ increaseStmt := internal.TxStmt(txn, s.increaseStreamIDStmt)
+ selectStmt := internal.TxStmt(txn, s.selectStreamIDStmt)
if _, err = increaseStmt.ExecContext(ctx, "global"); err != nil {
return
}