chore: 杂项修改
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user