0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-15 03:23:46 +01:00

Track expiry rate on pduCountTotal

This commit is contained in:
Neil Alexander 2021-07-05 13:47:37 +01:00
parent 99d8e1c107
commit bcd3ef38d0
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -358,6 +358,7 @@ func (t *inputWorker) run() {
select { select {
case <-task.ctx.Done(): case <-task.ctx.Done():
task.err = context.DeadlineExceeded task.err = context.DeadlineExceeded
pduCountTotal.WithLabelValues("expired").Inc()
return return
default: default:
evStart := time.Now() evStart := time.Now()