REPOSITORY / ScuroNeko/Laniakea
Compare commits
Compare commits
1 Commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c59dd1fe8e
|
@@ -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
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user