Revert "test"

This reverts commit b98069f4ba.
This commit is contained in:
shoopea 2019-06-28 15:54:54 +08:00
parent c2a12b880e
commit afa8b181ae

View File

@ -62,7 +62,6 @@ func MQGetMsgWorker(id int, msgs chan<- ChatWarsMessage) {
msgs <- x
}
}
log.Printf("MQGetMsgWorker[" + strconv.Itoa(id) + "] : Closing queue.\n")
s.Close()
}
@ -92,7 +91,6 @@ func MQKeepAliveWorker() {
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(
s.Queue, // name
false, // durable
@ -111,8 +109,6 @@ func MQKeepAliveWorker() {
false, // no-wait
nil, // args
)
for d := range m {
log.Printf("MQKeepAliveWorker : Received a message: %s", string(d.Body))
x := MQKeepAlive{}
@ -153,13 +149,18 @@ func MQKeepAliveWorker() {
TGCmdQueue <- c
clientSendCWMsg(x.UserID64, `🏅Me`)
clientSendCWMsg(x.UserID64, `/hero`)
}
}
/*
c = TGCommand{
Type: commandSendMsg,
FromUserID64: x.UserID64,
ToChatID64: userID64ChtWrsBot,
Text: `/hero`,
}
MQTGCmdQueue <- c
*/
s.Close()
log.Printf("MQKeepAliveWorker : Closing queue.\n")
}
}
}
}
log.Printf("MQKeepAliveWorker : Closing.")