mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
Evict EDUs from cache
This commit is contained in:
parent
c3951b8474
commit
35b757ac9c
|
|
@ -178,6 +178,9 @@ func (d *Database) DeleteExpiredEDUs(ctx context.Context) error {
|
|||
if len(jsonNIDs) == 0 {
|
||||
return nil
|
||||
}
|
||||
for i := range jsonNIDs {
|
||||
d.Cache.EvictFederationQueuedEDU(jsonNIDs[i])
|
||||
}
|
||||
|
||||
if err = d.FederationQueueJSON.DeleteQueueJSON(ctx, txn, jsonNIDs); err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in a new issue