Don't close the transaction as we reuse it between calls

This commit is contained in:
Kegan Dougal 2020-05-28 10:12:43 +01:00
parent 4ccac6957b
commit b0e0961677

View file

@ -90,7 +90,6 @@ func (s *inviteStatements) InsertInviteEvent(
inviteEventJSON []byte,
) (bool, error) {
stmt := internal.TxStmt(txn, s.insertInviteEventStmt)
defer stmt.Close() // nolint: errcheck
result, err := stmt.ExecContext(
ctx, inviteEventID, roomNID, targetUserNID, senderUserNID, inviteEventJSON,
)