mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-02-28 22:03:00 +00:00
Put redactions in the writer goroutine
This commit is contained in:
parent
a9f4d83d30
commit
fcdb90c91b
1 changed files with 4 additions and 1 deletions
|
@ -587,7 +587,10 @@ func (d *Database) RedactEvent(ctx context.Context, redactedEventID string, reda
|
|||
}
|
||||
|
||||
newEvent := ev.Headered(redactedBecause.RoomVersion)
|
||||
return d.OutputEvents.UpdateEventJSON(ctx, &newEvent)
|
||||
err = d.Writer.Do(nil, nil, func(txn *sql.Tx) error {
|
||||
return d.OutputEvents.UpdateEventJSON(ctx, &newEvent)
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
||||
// getResponseWithPDUsForCompleteSync creates a response and adds all PDUs needed
|
||||
|
|
Loading…
Reference in a new issue