From 8d434b9ca883b1f8999aec13c126ba54ecdd49c4 Mon Sep 17 00:00:00 2001 From: LanQin_ Date: Tue, 23 Jun 2026 15:32:12 +0800 Subject: [PATCH] =?UTF-8?q?chore(app):=20=E4=BF=AE=E6=AD=A3=20maildir=20?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E9=85=8D=E7=BD=AE=E8=AF=BB=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 启动 maildir worker 时改为读取 `a.cfg.MaildirRoot`,避免使用未确认的入参值。 --- apps/api/internal/app/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/internal/app/app.go b/apps/api/internal/app/app.go index afa1ce0..5ff360d 100644 --- a/apps/api/internal/app/app.go +++ b/apps/api/internal/app/app.go @@ -71,7 +71,7 @@ func New(cfg Config, logger *slog.Logger) (*App, error) { workerCtx, cancel := context.WithCancel(context.Background()) a.workerCancel = cancel go a.scheduledSendWorker(workerCtx) - if strings.TrimSpace(cfg.MaildirRoot) != "" { + if strings.TrimSpace(a.cfg.MaildirRoot) != "" { go a.maildirWorker(workerCtx) } go a.smtpEventsCleanupWorker(workerCtx)