Skip to content

Commit

Permalink
feat: 优化消费者和生产者使用案例
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxi2015 committed Oct 14, 2024
1 parent 85dcdbf commit dd20d15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (

func main() {
config := &gorabbitmq.Config{
Host: "47.101.134.204",
Host: "",
Port: "5672",
User: "root",
Password: "q8Xb6kC52zKL",
Password: "",
Vhost: "",
}
// 注意 队列是否持久化.false:队列在内存中,服务器挂掉后,队列就没了;true:服务器重启后,队列将会重新生成.注意:只是队列持久化,不代表队列中的消息持久化!!!!
Expand Down
4 changes: 2 additions & 2 deletions examples/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (

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

0 comments on commit dd20d15

Please sign in to comment.