We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b33421 commit 8ce8612Copy full SHA for 8ce8612
main.go
@@ -95,6 +95,7 @@ func worker(stopCtx context.Context, uc tgbotapi.UpdatesChannel, cancelCh chan i
95
for {
96
select {
97
case update := <-uc:
98
+ utils.Limiter.Take()
99
go router.Handle(update)
100
case <-stopCtx.Done():
101
cancelCh <- 1
0 commit comments