try to intercept messages
Some checks failed
Go / build (push) Has been cancelled

This commit is contained in:
finley
2025-01-22 22:11:50 +08:00
parent b78a27f399
commit 71751b9b34
6 changed files with 275 additions and 19 deletions

View File

@@ -19,14 +19,14 @@ func main() {
}).WithConcurrent(4)
// send delay message
for i := 0; i < 10; i++ {
err := queue.SendDelayMsg(strconv.Itoa(i), time.Second, delayqueue.WithRetryCount(3))
_, err := queue.SendDelayMsgV2(strconv.Itoa(i), time.Second, delayqueue.WithRetryCount(3))
if err != nil {
panic(err)
}
}
// send schedule message
for i := 0; i < 10; i++ {
err := queue.SendScheduleMsg(strconv.Itoa(i), time.Now().Add(time.Second))
_, err := queue.SendScheduleMsgV2(strconv.Itoa(i), time.Now().Add(time.Second))
if err != nil {
panic(err)
}