Skip to content

Commit

Permalink
Feature/Accelerate_backfill_TradeLogs_usd_value
Browse files Browse the repository at this point in the history
  • Loading branch information
Haiss2 committed Jul 12, 2024
1 parent 0266e96 commit 2a254f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/pricefiller/price_fillter.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const (
NetworkETHChanID = 1
NetworkETH = "ETH"
updateAllCoinInfoInterval = time.Hour
backfillTradeLogsPriceInterval = time.Hour
backfillTradeLogsPriceInterval = time.Minute
backfillTradeLogsLimit = 60
addressETH = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
coinUSDT = "USDT"
)
Expand Down Expand Up @@ -136,7 +137,7 @@ func (p *PriceFiller) runBackFillTradelogPriceRoutine() {
for range ticker.C {
tradeLogs, err := p.s.Get(storage.TradeLogsQuery{
State: string(storage.TradeLogStateNew),
Limit: 100,
Limit: backfillTradeLogsLimit,
})
if err != nil {
p.l.Errorw("Failed to get tradeLogs", "err", err)
Expand Down

0 comments on commit 2a254f8

Please sign in to comment.