Fix blacklist again, remove unnecessary duplicate context

This commit is contained in:
Neil Alexander 2022-01-26 15:32:52 +00:00
parent 261b1a3a2c
commit 3f4e95fb76
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 1 additions and 4 deletions

View file

@ -141,10 +141,8 @@ func (r *Inputer) InputRoomEvents(
roomserverInputBackpressure.With(prometheus.Labels{"room_id": roomID}).Inc()
worker := r.workerForRoom(roomID)
worker.Act(nil, func() {
reqctx, cancel := context.WithTimeout(ctx, MaximumProcessingTime)
defer cancel()
defer roomserverInputBackpressure.With(prometheus.Labels{"room_id": roomID}).Dec()
err := r.processRoomEvent(reqctx, &inputRoomEvent)
err := r.processRoomEvent(ctx, &inputRoomEvent)
if err != nil {
sentry.CaptureException(err)
} else {

View file

@ -32,4 +32,3 @@ Remove group role
# See https://github.com/matrix-org/sytest/pull/1142
Device list doesn't change if remote server is down
If a device list update goes missing, the server resyncs on the next one