From faf370383ade789d0eeca0f0aff957b79e0b617e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E4=BA=91=E9=87=91YunjinXu?= Date: Thu, 8 Jan 2026 20:47:10 +0800 Subject: [PATCH] docs(dtmsvr): add comment about WaitResult and NextCronTime exclusivity --- dtmsvr/api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dtmsvr/api.go b/dtmsvr/api.go index a2366c2..77758de 100644 --- a/dtmsvr/api.go +++ b/dtmsvr/api.go @@ -41,6 +41,7 @@ func svcSubmit(t *TransGlobal) interface{} { } // In msg mode, allow delaying consumption by using a custom NextCronTime + // WaitResult=true and NextCronTime are mutually exclusive, WaitResult takes priority if !t.WaitResult && t.TransType == "msg" && !t.NextCronTime.IsZero() && t.NextCronTime.After(time.Now().Add(3*time.Second)) { return nil }