~emersion/soju

d334bb18a2b6440fc8c221609fbae7db4e70d355 — Simon Ser 8 days ago 79dbb20
db_postgres: use tx for all queries in StoreClientDeliveryReceipts
1 files changed, 1 insertions(+), 1 deletions(-)

M db_postgres.go
M db_postgres.go => db_postgres.go +1 -1
@@ 417,7 417,7 @@ func (db *PostgresDB) StoreClientDeliveryReceipts(networkID int64, client string
		return err
	}

	stmt, err := db.db.Prepare(`
	stmt, err := tx.Prepare(`
		INSERT INTO "DeliveryReceipt" (network, target, client, internal_msgid)
		VALUES ($1, $2, $3, $4)
		RETURNING id`)