grid2: add warning message when failed to acquire the lock

This commit is contained in:
c9s 2023-06-30 11:07:02 +08:00
parent 0e2f69e837
commit 085114b244
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -1183,6 +1183,8 @@ func (s *Strategy) updateGridNumOfOrdersMetricsWithLock() {
grid := s.grid grid := s.grid
s.mu.Unlock() s.mu.Unlock()
s.updateGridNumOfOrdersMetrics(grid) s.updateGridNumOfOrdersMetrics(grid)
} else {
s.logger.Warnf("updateGridNumOfOrdersMetricsWithLock: failed to acquire the lock to update metrics")
} }
} }