0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-11-18 07:40:53 +01:00

Missing operators

This commit is contained in:
Neil Alexander 2020-12-04 16:24:36 +00:00
parent 44187311b6
commit 9700f0b31c
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -246,10 +246,10 @@ func (oq *destinationQueue) backgroundSend() {
// has exceeded a maximum allowable value. Clean up the in-memory
// buffers at this point. The PDU clean-up is already on a defer.
log.Warnf("Blacklisting %q due to exceeding backoff threshold", oq.destination)
for i := pendingPDUs {
for i := range pendingPDUs {
pendingPDUs[i] = nil
}
for i := pendingEDUs {
for i := range pendingEDUs {
pendingEDUs[i] = nil
}
pendingPDUs = nil
@ -277,10 +277,10 @@ func (oq *destinationQueue) backgroundSend() {
// If we successfully sent the transaction then clear out
// the pending events and EDUs, and wipe our transaction ID.
oq.statistics.Success()
for i := pendingPDUs {
for i := range pendingPDUs {
pendingPDUs[i] = nil
}
for i := pendingEDUs {
for i := range pendingEDUs {
pendingEDUs[i] = nil
}
pendingPDUs = pendingPDUs[:0]