redis消费队列接口优化

This commit is contained in:
2026-03-12 08:51:17 +08:00
committed by admin
parent 65acd04e1a
commit 38ae9edd54
3 changed files with 12 additions and 9 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ type QueueMessage struct {
ConsumerName string // 消费者名称
Timeout int64 // 阻塞超时时间(毫秒)
BatchSize int64 // 最大并发数(信号量容量)
BlockMs int64
Block bool
BlockMs int64 // 阻塞时间
AutoAck bool //ACK确认,true自动确认,false手动确认
HandleFunc func(ctx context.Context, message map[string]interface{}) error
}