mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-20 13:23:22 -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,
|
inviteEventJSON []byte,
|
||||||
) (bool, error) {
|
) (bool, error) {
|
||||||
stmt := internal.TxStmt(txn, s.insertInviteEventStmt)
|
stmt := internal.TxStmt(txn, s.insertInviteEventStmt)
|
||||||
defer stmt.Close() // nolint: errcheck
|
|
||||||
result, err := stmt.ExecContext(
|
result, err := stmt.ExecContext(
|
||||||
ctx, inviteEventID, roomNID, targetUserNID, senderUserNID, inviteEventJSON,
|
ctx, inviteEventID, roomNID, targetUserNID, senderUserNID, inviteEventJSON,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue