chore(app): 修正 maildir 目录配置读取
Docker Release / Check web and api (push) Waiting to run
Docker Release / Resolve release tag (push) Blocked by required conditions
Docker Release / Build and publish all-in-one (push) Blocked by required conditions
Docker Release / Build and publish api (push) Blocked by required conditions
Docker Release / Build and publish web (push) Blocked by required conditions
Docker Release / Build and publish dovecot (push) Blocked by required conditions
Docker Release / Build and publish postfix (push) Blocked by required conditions
Docker Release / Build and publish rspamd (push) Blocked by required conditions
Docker Release / Create GitHub release (push) Blocked by required conditions
Docker Release / Check web and api (push) Waiting to run
Docker Release / Resolve release tag (push) Blocked by required conditions
Docker Release / Build and publish all-in-one (push) Blocked by required conditions
Docker Release / Build and publish api (push) Blocked by required conditions
Docker Release / Build and publish web (push) Blocked by required conditions
Docker Release / Build and publish dovecot (push) Blocked by required conditions
Docker Release / Build and publish postfix (push) Blocked by required conditions
Docker Release / Build and publish rspamd (push) Blocked by required conditions
Docker Release / Create GitHub release (push) Blocked by required conditions
- 启动 maildir worker 时改为读取 `a.cfg.MaildirRoot`,避免使用未确认的入参值。
This commit is contained in:
@@ -71,7 +71,7 @@ func New(cfg Config, logger *slog.Logger) (*App, error) {
|
|||||||
workerCtx, cancel := context.WithCancel(context.Background())
|
workerCtx, cancel := context.WithCancel(context.Background())
|
||||||
a.workerCancel = cancel
|
a.workerCancel = cancel
|
||||||
go a.scheduledSendWorker(workerCtx)
|
go a.scheduledSendWorker(workerCtx)
|
||||||
if strings.TrimSpace(cfg.MaildirRoot) != "" {
|
if strings.TrimSpace(a.cfg.MaildirRoot) != "" {
|
||||||
go a.maildirWorker(workerCtx)
|
go a.maildirWorker(workerCtx)
|
||||||
}
|
}
|
||||||
go a.smtpEventsCleanupWorker(workerCtx)
|
go a.smtpEventsCleanupWorker(workerCtx)
|
||||||
|
|||||||
Reference in New Issue
Block a user