chore: 杂项修改

This commit is contained in:
lixiangwuxian
2024-11-27 01:15:45 +08:00
parent 978aa6a04e
commit 2fccf24709
3 changed files with 6 additions and 13 deletions

View File

@@ -225,11 +225,11 @@ func RoundCheckNewBond() {
for !action.ActionManager.Started() {
time.Sleep(5 * time.Second)
}
once := true
// once := true
for {
if !once {
time.Sleep(5 * time.Minute)
}
// if !once {
time.Sleep(5 * time.Minute)
// }
bonds, err := GetBondsData()
if bonds == nil || err != nil {
fmt.Println("Error getting bonds data:", err)
@@ -262,6 +262,6 @@ func RoundCheckNewBond() {
}
AddBondData(bond)
}
once = false
// once = false
}
}