From 76ac5fabaab757cb568bf13910778f33429839e4 Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 31 Jul 2019 14:44:58 +0800 Subject: [PATCH] client revamping compilation fix --- bot.go | 4 ++-- workers.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.go b/bot.go index 916e262..f19a353 100644 --- a/bot.go +++ b/bot.go @@ -172,9 +172,9 @@ func botGetClients(m *tb.Message) { var ret string for id, c := range clients { if c.Active { - ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d (online)\n", ret, c.MQ.User, c.CWUserID64, c.TGUserID64) + ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d (online)\n", ret, c.MQ.User, c.CWUserID64, id) } else { - ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d (offline)\n", ret, c.MQ.User, c.CWUserID64, c.TGUserID64) + ret = fmt.Sprintf("%s%s | UserID : %d | TelegramID : %d (offline)\n", ret, c.MQ.User, c.CWUserID64, id) } } muxClients.RUnlock() diff --git a/workers.go b/workers.go index 192310b..a40c43a 100644 --- a/workers.go +++ b/workers.go @@ -580,7 +580,7 @@ func MQTidyKeepAliveWorker() { logOnError(err, "MQTidyKeepAliveWorker : Connection.Close()") cmd := TGCommand{ Type: commandSendMsg, - ToUserID64: clt.TGUserID64, + ToUserID64: id, Text: "Timeout, purging and closing command queue.", } TGCmdQueue <- cmd