REPOSITORY / ScuroNeko/Laniakea

Compare commits

DIFF REPOSITORY

Compare commits

...
Author SHA1 Message Date
ScuroNeko c59dd1fe8e Handle canceled update polling without shutdown delay 2026-03-19 14:16:31 +03:00
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -7,7 +7,6 @@ import (
"sort"
"strings"
"sync"
"time"
"git.nix13.pw/scuroneko/extypes"
"git.nix13.pw/scuroneko/laniakea/tgapi"
@@ -504,8 +503,10 @@ func (bot *Bot[T]) RunWithContext(ctx context.Context) {
default:
updates, err := bot.Updates(ctx)
if err != nil {
if errors.Is(err, context.Canceled) {
return
}
bot.logger.Errorln("failed to fetch updates:", err)
time.Sleep(time.Second) // exponential backoff
continue
}
+2 -2
View File
@@ -1,9 +1,9 @@
package utils
const (
VersionString = "1.0.0-rc.2"
VersionString = "1.0.0-rc.3"
VersionMajor = 1
VersionMinor = 0
VersionPatch = 0
VersionBeta = 2
VersionBeta = 3
)