Count EDUs in sendCounter

This commit is contained in:
Anant Prakash 2018-08-10 04:39:56 +05:30
parent 23cf26bbbb
commit 58dceb1a08
No known key found for this signature in database
GPG key ID: C5D399F626523045

View file

@ -125,6 +125,7 @@ func (oq *destinationQueue) next() *gomatrixserverlib.Transaction {
t.EDUs = append(t.EDUs, *edu)
}
oq.pendingEDUs = nil
oq.sentCounter += len(t.EDUs)
return &t
}