mirror of
https://github.com/FloatTech/zbpdata.git
synced 2026-02-15 19:59:35 +09:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc8f73dee4 | ||
|
|
0d0fa3f435 | ||
|
|
5a511a6d63 |
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@@ -23,10 +23,12 @@ jobs:
|
||||
env:
|
||||
REILIA_SPS: ${{ secrets.REILIA_SPS }}
|
||||
run: |
|
||||
echo "ls ./"
|
||||
ls
|
||||
rm Wife/*
|
||||
rm Wife/go.* Wife/*.go Wife/*.md
|
||||
mv Wife/wives/*.{jpg,png} Wife/
|
||||
rm -rf Wife/wives
|
||||
rm -rf Wife/wives Wife/.git
|
||||
echo "ls Wife/"
|
||||
ls Wife/
|
||||
go mod init updater
|
||||
sed -i '1,3d' main.go
|
||||
|
||||
8
main.go
8
main.go
@@ -13,6 +13,7 @@ import (
|
||||
"unicode"
|
||||
"unsafe"
|
||||
|
||||
"github.com/FloatTech/floatbox/process"
|
||||
"github.com/fumiama/go-registry"
|
||||
"github.com/wdvxdr1123/ZeroBot/utils/helper"
|
||||
)
|
||||
@@ -45,18 +46,19 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
for i, fn := range files {
|
||||
for c := 0; c < 5; c++ {
|
||||
for c := 0; c < 16; c++ {
|
||||
err = r.Set("data/"+fn, md5s[i])
|
||||
fmt.Println("set", "data/"+fn, "=", hex.EncodeToString(helper.StringToBytes(md5s[i])))
|
||||
if err == nil {
|
||||
break
|
||||
}
|
||||
if c >= 4 {
|
||||
panic("ERROR:" + err.Error() + "max retry times exceeded")
|
||||
if c >= 15 {
|
||||
panic("ERROR:" + err.Error() + ", max retry times exceeded")
|
||||
} else {
|
||||
fmt.Println("ERROR:", err, ", retry times:", c)
|
||||
}
|
||||
_ = r.Close()
|
||||
process.SleepAbout1sTo2s()
|
||||
err = r.Connect()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user