This commit is contained in:
aozhiwei 2024-07-23 14:03:05 +08:00
parent 4ee6513d2b
commit 03e0047b60
2 changed files with 9 additions and 16 deletions

View File

@ -32,28 +32,21 @@ func (this* chainActivity) unInit() {
} }
func (this* chainActivity) process() { func (this* chainActivity) process() {
f5.GetGoStyleDb().LoopLoad( f5.GetGoStyleDb().IncrementLoad(
constant.BCNFT_DB, constant.BCNFT_DB,
"chainActivity", "chainActivity",
"t_blockchain_event", "t_blockchain_event",
func () int64 { func (lastIdx int64, maxIdx int64) (string, []string) {
return 60 * 1
},
func (lastIdx int64) string {
sql := fmt.Sprintf(` sql := fmt.Sprintf(`
SELECT * FROM t_blockchain_event WHERE idx > %d AND item_id = 0 AND token_type <> %d ORDER BY idx LIMIT 1000`, SELECT * FROM t_blockchain_event
WHERE idx > %d AND idx <= %d AND item_id = 0 AND token_type <> %d ORDER BY idx LIMIT 1000
`,
lastIdx, lastIdx,
maxIdx,
jccommon.NFT_TYPE_FOUNDER_TAG, jccommon.NFT_TYPE_FOUNDER_TAG,
) )
return sql params := []string{}
}, return sql, params
[]string{
},
func () int64 {
return 10
},
func () int64 {
return 60 * 5
}, },
this.repairNft) this.repairNft)
} }

2
third_party/f5 vendored

@ -1 +1 @@
Subproject commit c80bf38df943c14b9019f08773f3a42db7f8f6cf Subproject commit c842ce5e34e6b8a9e145913bcc87ea99219d45b5