docs: 添加部分注释
Some checks failed
CI / Backend (push) Has been cancelled
CI / Frontend (push) Has been cancelled

This commit is contained in:
hhs
2026-07-01 19:34:13 +08:00
parent 1b74c82ed4
commit e3c68dd6d3
4 changed files with 18 additions and 8 deletions

View File

@@ -59,10 +59,10 @@ func DeclareTopic(ch *amqp.Channel, exchange string, queue string, bindingKey st
if err := ch.ExchangeDeclare(
exchange,
"topic",
true,
false,
false,
false,
true, // 持久化参数
false, // autoDelete 是否在未使用时自动删除
false, // internal 是否交给其他交换机用而不直接收消息
false, // noWait 是否不等待 broker 确认
nil,
); err != nil {
return err