small fix
This commit is contained in:
2
bot.go
2
bot.go
@@ -3,7 +3,6 @@ package laniakea
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
|
||||||
"os"
|
"os"
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
@@ -325,7 +324,6 @@ func (bot *Bot[T]) RunWithContext(ctx context.Context) {
|
|||||||
pool := pond.NewPool(16)
|
pool := pond.NewPool(16)
|
||||||
for update := range bot.updateQueue {
|
for update := range bot.updateQueue {
|
||||||
update := update
|
update := update
|
||||||
log.Println(update)
|
|
||||||
pool.Submit(func() {
|
pool.Submit(func() {
|
||||||
bot.handle(update)
|
bot.handle(update)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user