From dac0cd8418ffd5443f9ca16faf29a9f43a793aef Mon Sep 17 00:00:00 2001 From: zhongqi Date: Tue, 5 Jul 2022 18:22:30 +0800 Subject: [PATCH] fix: fix test. --- README.md | 2 +- tgbot_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 39e6d98..673545c 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ func main() { // tgbot.WithWorkersNum(-1), // use can use unlimited workers. - tgbot.WithWorkersPool(pool), + tgbot.WithWorkersPool(tgbot.NewAntsPool(pool)), tgbot.WithUpdatesHandler(func(ctx *tgbot.Context) { err := ctx.ReplyText(ctx.Message().Text, func(c *tgbotapi.MessageConfig) { diff --git a/tgbot_test.go b/tgbot_test.go index 0d7ffd3..544f965 100644 --- a/tgbot_test.go +++ b/tgbot_test.go @@ -24,7 +24,7 @@ func ExampleNewBot() { bot := tgbot.NewBot(api, tgbot.WithTimeout(2*time.Second), - tgbot.WithWorkersPool(pool), + tgbot.WithWorkersPool(tgbot.NewAntsPool(pool)), tgbot.WithUpdatesHandler(func(ctx *tgbot.Context) { err := ctx.ReplyText(ctx.Message().Text, func(c *tgbotapi.MessageConfig) {