xdepthmaker: change priceHeartBeat alert to warning

This commit is contained in:
c9s 2023-12-11 17:05:07 +08:00
parent cedd790066
commit 98468b39c7
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -421,7 +421,7 @@ func (s *Strategy) CrossRun(
return
}
if time.Since(lastOrderReplenishTime) < time.Minute {
if time.Since(lastOrderReplenishTime) < 10*time.Second {
continue
}
@ -828,14 +828,14 @@ func (s *Strategy) updateQuote(ctx context.Context, maxLayer int) {
bookLastUpdateTime := s.pricingBook.LastUpdateTime()
if _, err := s.bidPriceHeartBeat.Update(bestBid); err != nil {
log.WithError(err).Errorf("quote update error, %s price not updating, order book last update: %s ago",
log.WithError(err).Warnf("quote update error, %s price not updating, order book last update: %s ago",
s.Symbol,
time.Since(bookLastUpdateTime))
return
}
if _, err := s.askPriceHeartBeat.Update(bestAsk); err != nil {
log.WithError(err).Errorf("quote update error, %s price not updating, order book last update: %s ago",
log.WithError(err).Warnf("quote update error, %s price not updating, order book last update: %s ago",
s.Symbol,
time.Since(bookLastUpdateTime))
return