Skip to content

Commit faf3703

Browse files
committed
docs(dtmsvr): add comment about WaitResult and NextCronTime exclusivity
1 parent 979d8d6 commit faf3703

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

dtmsvr/api.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ func svcSubmit(t *TransGlobal) interface{} {
4141
}
4242

4343
// In msg mode, allow delaying consumption by using a custom NextCronTime
44+
// WaitResult=true and NextCronTime are mutually exclusive, WaitResult takes priority
4445
if !t.WaitResult && t.TransType == "msg" && !t.NextCronTime.IsZero() && t.NextCronTime.After(time.Now().Add(3*time.Second)) {
4546
return nil
4647
}

0 commit comments

Comments
 (0)