chore: 补充后端核心模块的中文注释
This commit is contained in:
@@ -32,13 +32,13 @@ func (w *LikeWorker) Run(ctx context.Context) error {
|
||||
}
|
||||
|
||||
deliveries, err := w.ch.Consume(
|
||||
w.queue,
|
||||
"",
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
nil,
|
||||
w.queue, // 队列名
|
||||
"", // 消费者标签,空代表让 RabbitMQ 自动生成一个唯一的标签
|
||||
false, // autoAck = false 采用手动确认模式
|
||||
false, // exclusive = false 允许多个消费者同时消费同一个队列
|
||||
false, // noLocal = false 允许消费者接收自己发送的消息
|
||||
false, // noWait = false 阻塞等待 RabbitMQ 的响应
|
||||
nil, // args
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user