aboutsummaryrefslogtreecommitdiff
path: root/roomserver/storage/postgres/events_table.go
diff options
context:
space:
mode:
Diffstat (limited to 'roomserver/storage/postgres/events_table.go')
-rw-r--r--roomserver/storage/postgres/events_table.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/roomserver/storage/postgres/events_table.go b/roomserver/storage/postgres/events_table.go
index 9c464946..5a567bf2 100644
--- a/roomserver/storage/postgres/events_table.go
+++ b/roomserver/storage/postgres/events_table.go
@@ -426,10 +426,9 @@ func (s *eventStatements) SelectMaxEventDepth(ctx context.Context, txn *sql.Tx,
}
func (s *eventStatements) SelectRoomNIDForEventNID(
- ctx context.Context, txn *sql.Tx, eventNID types.EventNID,
+ ctx context.Context, eventNID types.EventNID,
) (roomNID types.RoomNID, err error) {
- selectStmt := internal.TxStmt(txn, s.selectRoomNIDForEventNIDStmt)
- err = selectStmt.QueryRowContext(ctx, int64(eventNID)).Scan(&roomNID)
+ err = s.selectRoomNIDForEventNIDStmt.QueryRowContext(ctx, int64(eventNID)).Scan(&roomNID)
return
}