From 79c044e8ec625ad38b161df882dd47b1086eb636 Mon Sep 17 00:00:00 2001 From: Luke Plaster Date: Fri, 24 Jul 2015 17:12:37 +0200 Subject: [PATCH] Easy older go compat `go range` without loop values is new to 1.4. some of us are stuck with older go (wheezy backport is 1.3.3) merge if you wish - this was a quick one --- bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.go b/bot.go index 04428c0..482ad9b 100644 --- a/bot.go +++ b/bot.go @@ -38,7 +38,7 @@ func (b Bot) Listen(subscription chan<- Message, interval time.Duration) { latestUpdate := 0 go func() { - for range pulse.C { + for _ = range pulse.C { go getUpdates(b.Token, latestUpdate+1, updates)