From 837cbae8ebea930724b4eab52bc4ce53e99f0555 Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 15 May 2019 10:38:23 +0800 Subject: [PATCH] test --- td.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td.go b/td.go index 0e3fcf9..5d19bb5 100644 --- a/td.go +++ b/td.go @@ -21,7 +21,7 @@ func ListenMe(c *tdlib.Client) { } receiver := c.AddEventReceiver(&tdlib.UpdateNewMessage{}, eventFilter, 100) - for newMsg := range receiver.Chan { + for _ := range receiver.Chan { lastOwnTDMsg = time.Now() } } @@ -33,7 +33,7 @@ func ListenMQ(c *tdlib.Client, msgs <-chan ChatWarsCommand) { time.Sleep(time.Until(lastOwnTDMsg.Add(time.Second))) now = time.Now() } - log.Printf("ListenMQ : Consuming msg\n") + log.Printf("ListenMQ : Consuming msg %d\n", m.Type) } }