test
This commit is contained in:
parent
f008d597e4
commit
80b4027776
@ -33,7 +33,8 @@ 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)+"] : Queue address : %p.\n", &s.MQQueue)
|
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)
|
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
|
||||||
@ -88,6 +89,8 @@ 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