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