Browse Source

docs(dtmsvr): add comment about WaitResult and NextCronTime exclusivity

pull/577/head
徐云金YunjinXu 3 months ago
parent
commit
faf370383a
  1. 1
      dtmsvr/api.go

1
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
}

Loading…
Cancel
Save