Evict EDUs from cache

This commit is contained in:
Till Faelligen 2022-04-28 13:55:43 +02:00
parent c3951b8474
commit 35b757ac9c

View file

@ -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