loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Do not call nil handler for a dummy queue (#24880)

A dummy queue doesn't really have a handler (see line 211), so the
`safeHandler` can safely drop all items

authored by

wxiaoguang and committed by
GitHub
16a766cb cfadb190

+4 -1
+4 -1
modules/queue/workerqueue.go
··· 239 239 log.Error("Recovered from panic in queue %q handler: %v\n%s", name, err, log.Stack(2)) 240 240 } 241 241 }() 242 - return w.origHandler(t...) 242 + if w.origHandler != nil { 243 + return w.origHandler(t...) 244 + } 245 + return nil 243 246 } 244 247 245 248 return &w, nil