mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 06:34:40 +03:00
queue: when shutting down, wait for pending deliveries before signaling that shutdown is complete
also fixes flaky test, which is how i found it
This commit is contained in:
2
serve.go
2
serve.go
@ -78,7 +78,7 @@ func start(mtastsdbRefresher, sendDMARCReports, sendTLSReports, skipForkExec boo
|
||||
return fmt.Errorf("tlsrpt init: %s", err)
|
||||
}
|
||||
|
||||
done := make(chan struct{}, 4) // Goroutines for messages and webhooks, and cleaners.
|
||||
done := make(chan struct{}) // Goroutines for messages and webhooks, and cleaners.
|
||||
if err := queue.Start(dns.StrictResolver{Pkg: "queue"}, done); err != nil {
|
||||
return fmt.Errorf("queue start: %s", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user