parent
aadd432133
commit
2a5ea917cb
@ -35,8 +35,8 @@ func MQGetMsgWorker(id int, msgs chan<- ChatWarsMessage) {
|
||||
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Connection address : %p.\n", &s.MQConnection)
|
||||
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Channel address : %p.\n", &s.MQChannel)
|
||||
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Queue name : %s.\n", s.Queue)
|
||||
|
||||
_, err := s.MQChannel.QueueDeclare(
|
||||
/*
|
||||
q, err := s.MQChannel.QueueDeclare(
|
||||
s.Queue, // name
|
||||
false, // durable
|
||||
false, // delete when unused
|
||||
@ -45,7 +45,6 @@ func MQGetMsgWorker(id int, msgs chan<- ChatWarsMessage) {
|
||||
nil, // arguments
|
||||
|
||||
)
|
||||
/*
|
||||
m, err := s.MQChannel.Consume(
|
||||
q.Name, // queue
|
||||
"", // consumer
|
||||
|
Loading…
Reference in New Issue
Block a user