parent
afa8b181ae
commit
81c7b10291
@ -33,8 +33,7 @@ func MQGetMsgWorker(id int, msgs chan<- ChatWarsMessage) {
|
|||||||
}
|
}
|
||||||
//log.Printf("MQGetMsgWorker[" + strconv.Itoa(id) + "] : Connected to RabbitMQ")
|
//log.Printf("MQGetMsgWorker[" + strconv.Itoa(id) + "] : Connected to RabbitMQ")
|
||||||
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Session address : %p.\n", &s)
|
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Session address : %p.\n", &s)
|
||||||
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Connection address : %p.\n", &s.MQConnection)
|
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Queue address : %p.\n", &s.MQQueue)
|
||||||
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Channel address : %p.\n", &s.MQChannel)
|
|
||||||
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Queue name : %s.\n", s.Queue)
|
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Queue name : %s.\n", s.Queue)
|
||||||
q, err := s.MQChannel.QueueDeclare(
|
q, err := s.MQChannel.QueueDeclare(
|
||||||
s.Queue, // name
|
s.Queue, // name
|
||||||
@ -89,8 +88,6 @@ func MQKeepAliveWorker() {
|
|||||||
}
|
}
|
||||||
//log.Printf("MQKeepAliveWorker : Connected to RabbitMQ")
|
//log.Printf("MQKeepAliveWorker : Connected to RabbitMQ")
|
||||||
log.Printf("MQKeepAliveWorker : Session address : %p.\n", &s)
|
log.Printf("MQKeepAliveWorker : Session address : %p.\n", &s)
|
||||||
log.Printf("MQKeepAliveWorker : Connection address : %p.\n", &s.MQConnection)
|
|
||||||
log.Printf("MQKeepAliveWorker : Channel address : %p.\n", &s.MQChannel)
|
|
||||||
q, err := s.MQChannel.QueueDeclare(
|
q, err := s.MQChannel.QueueDeclare(
|
||||||
s.Queue, // name
|
s.Queue, // name
|
||||||
false, // durable
|
false, // durable
|
||||||
|
Loading…
Reference in New Issue
Block a user