Try that again

This commit is contained in:
Neil Alexander 2022-01-24 12:56:14 +00:00
parent 0308cebc6a
commit 2a911aa892
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -91,11 +91,11 @@ func (r *Inputer) Start() error {
_ = msg.Term() _ = msg.Term()
return return
} }
defer eventIDsQueued.Delete(eventID)
roomserverInputBackpressure.With(prometheus.Labels{"room_id": roomID}).Inc() roomserverInputBackpressure.With(prometheus.Labels{"room_id": roomID}).Inc()
worker := r.workerForRoom(roomID) worker := r.workerForRoom(roomID)
worker.Act(nil, func() { worker.Act(nil, func() {
defer eventIDsQueued.Delete(eventID)
ctx, cancel := context.WithTimeout(context.Background(), MaximumProcessingTime) ctx, cancel := context.WithTimeout(context.Background(), MaximumProcessingTime)
defer cancel() defer cancel()
defer roomserverInputBackpressure.With(prometheus.Labels{"room_id": roomID}).Dec() defer roomserverInputBackpressure.With(prometheus.Labels{"room_id": roomID}).Dec()