mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-17 02:53:11 -06:00
Delete relay json along with queue entry
This commit is contained in:
parent
ad53326ce8
commit
ab57b30883
|
|
@ -88,6 +88,7 @@ func (d *Database) CleanAsyncTransactions(
|
|||
for i, receipt := range receipts {
|
||||
nids[i] = receipt.GetNID()
|
||||
}
|
||||
|
||||
err := d.Writer.Do(d.DB, nil, func(txn *sql.Tx) error {
|
||||
err := d.RelayQueue.DeleteQueueEntries(ctx, txn, userID.Domain(), nids)
|
||||
return err
|
||||
|
|
@ -96,6 +97,14 @@ func (d *Database) CleanAsyncTransactions(
|
|||
return fmt.Errorf("d.deleteQueueEntries: %w", err)
|
||||
}
|
||||
|
||||
err = d.Writer.Do(d.DB, nil, func(txn *sql.Tx) error {
|
||||
err := d.RelayQueueJSON.DeleteQueueJSON(ctx, txn, nids)
|
||||
return err
|
||||
})
|
||||
if err != nil {
|
||||
return fmt.Errorf("d.deleteQueueJSON: %w", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue