mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-20 20:43:09 -06:00
Rename destination queue variable for correctness
This commit is contained in:
parent
a5da7301fd
commit
e1c50b78bd
|
|
@ -371,7 +371,7 @@ func (oq *destinationQueue) backgroundSend() {
|
||||||
|
|
||||||
// If we have pending PDUs or EDUs then construct a transaction.
|
// If we have pending PDUs or EDUs then construct a transaction.
|
||||||
// Try sending the next transaction and see what happens.
|
// Try sending the next transaction and see what happens.
|
||||||
terr, relaySuccess := oq.nextTransaction(toSendPDUs, toSendEDUs)
|
terr, sendMethod := oq.nextTransaction(toSendPDUs, toSendEDUs)
|
||||||
if terr != nil {
|
if terr != nil {
|
||||||
// We failed to send the transaction. Mark it as a failure.
|
// We failed to send the transaction. Mark it as a failure.
|
||||||
_, blacklisted := oq.statistics.Failure()
|
_, blacklisted := oq.statistics.Failure()
|
||||||
|
|
@ -388,7 +388,7 @@ func (oq *destinationQueue) backgroundSend() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
oq.handleTransactionSuccess(pduCount, eduCount, relaySuccess)
|
oq.handleTransactionSuccess(pduCount, eduCount, sendMethod)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue