mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-20 05:13:11 -06:00
Don't close the transaction as we reuse it between calls
This commit is contained in:
parent
4ccac6957b
commit
b0e0961677
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue