Skip to content

Commit dd20d15

Browse files
committed
feat: 优化消费者和生产者使用案例
1 parent 85dcdbf commit dd20d15

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/consumer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88

99
func main() {
1010
config := &gorabbitmq.Config{
11-
Host: "47.101.134.204",
11+
Host: "",
1212
Port: "5672",
1313
User: "root",
14-
Password: "q8Xb6kC52zKL",
14+
Password: "",
1515
Vhost: "",
1616
}
1717
// 注意 队列是否持久化.false:队列在内存中,服务器挂掉后,队列就没了;true:服务器重启后,队列将会重新生成.注意:只是队列持久化,不代表队列中的消息持久化!!!!

examples/producer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88

99
func main() {
1010
config := &gorabbitmq.Config{
11-
Host: "47.101.134.204",
11+
Host: "",
1212
Port: "5672",
1313
User: "root",
14-
Password: "q8Xb6kC52zKL",
14+
Password: "",
1515
Vhost: "",
1616
}
1717
// 注意 队列是否持久化.false:队列在内存中,服务器挂掉后,队列就没了;true:服务器重启后,队列将会重新生成.注意:只是队列持久化,不代表队列中的消息持久化!!!!

0 commit comments

Comments
 (0)