From 7e9e0e11ffa14f5049f053e8b904ba818df938f1 Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Tue, 30 Jan 2018 18:56:37 +0400 Subject: [PATCH] Trying to parallelism --- cmd/i2_bot/i2_bot.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/i2_bot/i2_bot.go b/cmd/i2_bot/i2_bot.go index 21197f8..6c5d749 100644 --- a/cmd/i2_bot/i2_bot.go +++ b/cmd/i2_bot/i2_bot.go @@ -65,15 +65,15 @@ func main() { if update.Message != nil { if update.Message.From != nil { if update.Message.Date > (int(time.Now().Unix()) - 5) { - c.Router.RouteRequest(&update) + go c.Router.RouteRequest(&update) } } } else if update.InlineQuery != nil { - c.Router.RouteInline(&update) + go c.Router.RouteInline(&update) } else if update.CallbackQuery != nil { - c.Router.RouteCallback(&update) + go c.Router.RouteCallback(&update) } else if update.ChosenInlineResult != nil { - c.Log.Debug(update.ChosenInlineResult.ResultID) + go c.Log.Debug(update.ChosenInlineResult.ResultID) } else { continue }