From 943957e2b636f188fe4e50f2262aeea009acf434 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Wed, 13 Sep 2017 16:01:37 +0100 Subject: [PATCH] Fix rooms_table --- .../matrix-org/dendrite/roomserver/storage/rooms_table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/roomserver/storage/rooms_table.go b/src/github.com/matrix-org/dendrite/roomserver/storage/rooms_table.go index c805cf001..64193ffee 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/storage/rooms_table.go +++ b/src/github.com/matrix-org/dendrite/roomserver/storage/rooms_table.go @@ -96,7 +96,7 @@ func (s *roomStatements) selectRoomNID( ) (types.RoomNID, error) { var roomNID int64 stmt := common.TxStmt(txn, s.selectRoomNIDStmt) - err := stmt.QueryRow(ctx, roomID).Scan(&roomNID) + err := stmt.QueryRowContext(ctx, roomID).Scan(&roomNID) return types.RoomNID(roomNID), err }