mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-21 05:43:09 -06:00
Update comments
This commit is contained in:
parent
b152ee7c04
commit
c072071801
|
|
@ -276,10 +276,10 @@ func (oq *destinationQueue) backgroundSend() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If something else has come along since we sent the previous
|
// If something else has come along while we were busy sending
|
||||||
// transactions then we want the next loop iteration to skip the
|
// the previous transaction then we don't want the next loop
|
||||||
// wait and not go to sleep. In which case, if there isn't a
|
// iteration to sleep. Send a message if someone else hasn't
|
||||||
// wake-up message already, send one.
|
// already sent a wake-up.
|
||||||
if oq.pendingPDUs.Load() > 0 {
|
if oq.pendingPDUs.Load() > 0 {
|
||||||
select {
|
select {
|
||||||
case oq.notifyPDUs <- true:
|
case oq.notifyPDUs <- true:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue