diff --git a/server/light_backtask/task/refresh_meta.go b/server/light_backtask/task/refresh_meta.go index a528b865..ae4095a0 100644 --- a/server/light_backtask/task/refresh_meta.go +++ b/server/light_backtask/task/refresh_meta.go @@ -11,6 +11,7 @@ import ( "strings" "net/http" "io/ioutil" + "time" ) type nftInfo struct { @@ -88,7 +89,7 @@ SELECT * FROM t_nft WHERE idx > %d AND net_id = %d AND last_refresh_meta_time = func () int64 { this.doRefresh() this.batchNfts = []*nftInfo{} - return 60 + 10 + return 60 * 60 }, this.repairNftMeta) } @@ -192,4 +193,5 @@ func (this* refreshMeta) internalRefresh(contractAddress string, nftMetas []*nft fmt.Printf("http error read %s", err) } } + time.Sleep(time.Second * 60 + 10) }