Put the worker's panic recovery back
d461035 was committed with the TestMailQueueSurvivesAPanic mutation (recover replaced by any(nil)) still in place: the mutation script was cut off by a closed pipe before it restored the file. The queue is again byte-for-byte the one 158489d shipped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+1
−1
internal/slides/mailqueue.go+1 −1
CI passed — run details
diff --git a/internal/slides/mailqueue.go b/internal/slides/mailqueue.go| index a671549..27d227c 100644 |
| --- a/internal/slides/mailqueue.go |
| +++ b/internal/slides/mailqueue.go |
| @@ -144,7 +144,7 @@ func (q *mailQueue) reportDrops() { |
| // or the mailer is this message's failure, not the process's. |
| func (q *mailQueue) deliver(job mailJob) { |
| defer func() { |
| - if p := any(nil); p != nil { |
| + if p := recover(); p != nil { |
| q.logger.Error("slides: sign-in mail worker recovered from a panic", "panic", fmt.Sprint(p)) |
| } |
| }() |