|
@@ -29,7 +29,7 @@ func Init(redisAddr string) (err error) { |
|
|
// DailySettlementBlockStarChain 每日结算“区块星链” |
|
|
// DailySettlementBlockStarChain 每日结算“区块星链” |
|
|
func DailySettlementBlockStarChain(engine *xorm.Engine, mid string, isTask bool) (err error) { |
|
|
func DailySettlementBlockStarChain(engine *xorm.Engine, mid string, isTask bool) (err error) { |
|
|
//TODO::先休眠10分钟 |
|
|
//TODO::先休眠10分钟 |
|
|
time.Sleep(time.Minute * 10) |
|
|
|
|
|
|
|
|
time.Sleep(time.Minute * 5) |
|
|
session := engine.NewSession() |
|
|
session := engine.NewSession() |
|
|
defer func() { |
|
|
defer func() { |
|
|
session.Close() |
|
|
session.Close() |
|
|